Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <forenjunkie@chello.at>2017-01-12 23:40:24 +0300
committerPhilipp Hörist <forenjunkie@chello.at>2017-01-12 23:40:24 +0300
commit478d46f3454ced8e8647e3d18114375d445e79f0 (patch)
treeb832e46b79fe6bbf73c65d681e139306872a06ff /httpupload
parentf0dc86b923134f6ff28d7d379a38ebb466bcb992 (diff)
[httpupload] Catch UploadAborted exception
Diffstat (limited to 'httpupload')
-rw-r--r--httpupload/httpupload.py2
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')