Fix handling of document error
This commit is contained in:
parent
ddca33fcf1
commit
4c64870d8f
1 changed files with 1 additions and 1 deletions
|
@ -514,7 +514,7 @@ async def message(self, message):
|
||||||
response = (
|
response = (
|
||||||
"Failed to export {}. Reason: {}"
|
"Failed to export {}. Reason: {}"
|
||||||
).format(ext.upper(), error)
|
).format(ext.upper(), error)
|
||||||
else:
|
elif not error:
|
||||||
url = await upload.start(self, jid, filename)
|
url = await upload.start(self, jid, filename)
|
||||||
await send_oob_message(self, jid, url)
|
await send_oob_message(self, jid, url)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue