From 75aa87c74d7eb0b4cda0f44fac099c983cb29d1e Mon Sep 17 00:00:00 2001 From: Charles Connell Date: Tue, 8 Apr 2014 17:24:10 -0400 Subject: [PATCH] Wait longer for google drive conversion --- karmaworld/apps/notes/gdrive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/karmaworld/apps/notes/gdrive.py b/karmaworld/apps/notes/gdrive.py index d9ba0e8..169a98b 100644 --- a/karmaworld/apps/notes/gdrive.py +++ b/karmaworld/apps/notes/gdrive.py @@ -172,8 +172,8 @@ def upload_to_gdrive(service, media, filename, extension=None, mimetype=None): # exponentially wait for exportLinks to be returned if missing while u'exportLinks' not in file_dict or \ u'text/plain' not in file_dict[u'exportLinks']: - # if 31.5 seconds have passed, give up - if delay_exp == 5: + # if a bunch seconds have passed, give up + if delay_exp == 7: raise ValueError('Google Drive failed to read the document.') # wait some seconds -- 2.25.1