Commit 2627db2e authored by Philipp Hörist's avatar Philipp Hörist

HTTPUpload: Fix pylint error

parent 27c097df
Pipeline #6597 passed with stages
in 4 minutes and 8 seconds
......@@ -23,6 +23,7 @@
from nbxmpp.namespaces import Namespace
from nbxmpp.errors import StanzaError
from nbxmpp.errors import MalformedStanzaError
from nbxmpp.errors import HTTPUploadStanzaError
from nbxmpp.util import convert_tls_error_flags
from gi.repository import GLib
from gi.repository import Soup
......@@ -167,7 +168,10 @@ def _received_slot(self, task):
try:
result = task.finish()
except (StanzaError, MalformedStanzaError) as error:
except (StanzaError,
HTTPUploadStanzaError,
MalformedStanzaError) as error:
transfer.set_error()
if error.app_condition == 'file-too-large':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment