diff options
author | Philipp Hörist <forenjunkie@chello.at> | 2017-01-12 23:40:24 +0300 |
---|---|---|
committer | Philipp Hörist <forenjunkie@chello.at> | 2017-01-12 23:40:24 +0300 |
commit | 478d46f3454ced8e8647e3d18114375d445e79f0 (patch) | |
tree | b832e46b79fe6bbf73c65d681e139306872a06ff /httpupload/httpupload.py | |
parent | f0dc86b923134f6ff28d7d379a38ebb466bcb992 (diff) |
[httpupload] Catch UploadAborted exception
Diffstat (limited to 'httpupload/httpupload.py')
-rw-r--r-- | httpupload/httpupload.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/httpupload/httpupload.py b/httpupload/httpupload.py index 1c82f0f..054ce49 100644 --- a/httpupload/httpupload.py +++ b/httpupload/httpupload.py @@ -479,6 +479,8 @@ class Base(object): transfer = urllib2.urlopen(request, timeout=30) log.debug("urllib2 upload request done, response code: " + str(transfer.getcode())) return transfer.getcode() + except UploadAbortedException as error: + log.info('Upload Aborted') except Exception as error: gobject.idle_add(progress_window.close_dialog) log.exception('Error') |