From 478d46f3454ced8e8647e3d18114375d445e79f0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Philipp=20H=C3=B6rist?= <forenjunkie@chello.at>
Date: Thu, 12 Jan 2017 21:40:24 +0100
Subject: [PATCH] [httpupload] Catch UploadAborted exception

---
 httpupload/httpupload.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/httpupload/httpupload.py b/httpupload/httpupload.py
index 1c82f0f6..054ce49d 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')
-- 
GitLab