Skip to content
Snippets Groups Projects
Commit 478d46f3 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

[httpupload] Catch UploadAborted exception

parent f0dc86b9
No related branches found
No related tags found
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment