From: Charles Connell Date: Tue, 8 Apr 2014 21:24:10 +0000 (-0400) Subject: Wait longer for google drive conversion X-Git-Tag: release-20150131~144^2~15 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=75aa87c74d7eb0b4cda0f44fac099c983cb29d1e;p=oweals%2Fkarmaworld.git Wait longer for google drive conversion --- 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