This commit is contained in:
Florian Klien 2018-10-27 23:32:18 +02:00 committed by Emmanuel Gil Peyrot
parent f0b21c42d5
commit 8779d40602

View file

@ -38,7 +38,7 @@ class HttpUpload(slixmpp.ClientXMPP):
def timeout_callback(arg):
raise TimeoutError("could not send message in time")
url = await self['xep_0363'].upload_file(
self.filename, domain=self.domain timeout=10, timeout_callback=timeout_callback)
self.filename, domain=self.domain, timeout=10, timeout_callback=timeout_callback)
log.info('Upload success!')
log.info('Sending file to %s', self.recipient)