Also handle bad_request_400.PeerIdInvalid
This commit is contained in:
parent
3e2c301400
commit
652069ffd8
@ -21,7 +21,7 @@ async def cmd_application(app, msg):
|
||||
except (ValueError, UserNotFoundError):
|
||||
try:
|
||||
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))
|
||||
return
|
||||
|
||||
|
Reference in New Issue
Block a user