Also handle bad_request_400.PeerIdInvalid

This commit is contained in:
Profitroll 2022-12-15 15:04:35 +01:00
parent 3e2c301400
commit 652069ffd8

View File

@ -21,7 +21,7 @@ async def cmd_application(app, msg):
except (ValueError, UserNotFoundError): except (ValueError, UserNotFoundError):
try: try:
holo_user = HoloUser((await app.get_users(msg.command[1])).id) holo_user = HoloUser((await app.get_users(msg.command[1])).id)
except bad_request_400.UsernameInvalid: except (bad_request_400.UsernameInvalid, bad_request_400.PeerIdInvalid):
await msg.reply_text(locale("no_user_application", "message").format(msg.command[1]), quote=should_quote(msg)) await msg.reply_text(locale("no_user_application", "message").format(msg.command[1]), quote=should_quote(msg))
return return