projects
/
oweals
/
karmaworld.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19347f0
)
Wait longer for google drive conversion
author
Charles Connell
<charles@connells.org>
Tue, 8 Apr 2014 21:24:10 +0000
(17:24 -0400)
committer
Charles Connell
<charles@connells.org>
Tue, 8 Apr 2014 21:24:10 +0000
(17:24 -0400)
karmaworld/apps/notes/gdrive.py
patch
|
blob
|
history
diff --git
a/karmaworld/apps/notes/gdrive.py
b/karmaworld/apps/notes/gdrive.py
index d9ba0e8428b426aab727eb92223cc504fac287c7..169a98b1c73074e213f2ea90b940c1995446f657 100644
(file)
--- 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