Fix handling of document error

This commit is contained in:
Schimon Jehudah 2024-01-22 13:29:14 +00:00
parent ddca33fcf1
commit 4c64870d8f

View file

@ -514,7 +514,7 @@ async def message(self, message):
response = (
"Failed to export {}. Reason: {}"
).format(ext.upper(), error)
else:
elif not error:
url = await upload.start(self, jid, filename)
await send_oob_message(self, jid, url)
else: