exp is now exc

This commit is contained in:
2023-08-16 13:27:23 +02:00
parent 5e8506cc12
commit 1d88076285
6 changed files with 37 additions and 37 deletions

View File

@@ -237,16 +237,16 @@ async def get_submission(app: PyroClient, msg: Message):
quote=True,
)
return
except SubmissionDuplicatesError as exp:
except SubmissionDuplicatesError as exc:
await msg.reply_text(
app._(
"sub_media_duplicates_list", "message", locale=user.locale
).format("\n".join(exp.duplicates)),
).format("\n".join(exc.duplicates)),
quote=True,
)
return
except Exception as exp:
await msg.reply_text(format_exc(), quote=True)
except Exception as exc:
await msg.reply_text(exc, quote=True)
return
elif (
msg.from_user.id not in app.admins
@@ -270,12 +270,12 @@ async def get_submission(app: PyroClient, msg: Message):
)
)
return
except SubmissionDuplicatesError as exp:
except SubmissionDuplicatesError as exc:
await msg.reply_text(
app._("sub_dup", "message", locale=user.locale), quote=True
)
return
except Exception as exp:
except Exception as exc:
await app.send_message(
app.owner,
app._(