[tor-commits] [gettor/master] error handling bug fix

ilv at torproject.org ilv at torproject.org
Tue Sep 22 23:39:13 UTC 2015


commit ede9e14e63b8cd7ee7aeee3f984881d9dfcc048c
Author: poly <poly at darkdepths.net>
Date:   Sat Jan 3 15:46:29 2015 +0400

    error handling bug fix
---
 bundles2drive.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bundles2drive.py b/bundles2drive.py
index 4276304..8c329bf 100644
--- a/bundles2drive.py
+++ b/bundles2drive.py
@@ -180,7 +180,7 @@ def upload_files(client, basedir):
         print "Uploading '%s'..." % file
         try:
             file_data = drive_service.files().insert(body=body, media_body=file_body).execute()
-        except HttpError, e:
+        except errors.HttpError, e:
             print str(e)
 
         # upload signature
@@ -191,7 +191,7 @@ def upload_files(client, basedir):
         print "Uploading '%s'..." % asc
         try:
             asc_data = drive_service.files().insert(body=asc_head, media_body=asc_body).execute()
-        except HttpError, e:
+        except errors.HttpError, e:
             print str(e)
 
         # add filenames and file id to dict





More information about the tor-commits mailing list