[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit ede9e14e63b8cd7ee7aeee3f984881d9dfcc048c
Author: poly <poly@xxxxxxxxxxxxxx>
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



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits