From e79edf1dff745ec4cc42bd00c584679ea8ad914d Mon Sep 17 00:00:00 2001 From: profitroll Date: Tue, 3 Jan 2023 14:30:29 +0100 Subject: [PATCH] Added some more exceptions to handle --- modules/commands/application.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/commands/application.py b/modules/commands/application.py index abc758d..2e8521b 100644 --- a/modules/commands/application.py +++ b/modules/commands/application.py @@ -22,7 +22,7 @@ async def cmd_application(app: Client, msg: Message): except (ValueError, UserNotFoundError): try: holo_user = HoloUser((await app.get_users(msg.command[1])).id) - except (bad_request_400.UsernameInvalid, bad_request_400.PeerIdInvalid): + except (bad_request_400.UsernameInvalid, bad_request_400.PeerIdInvalid, bad_request_400.UsernameNotOccupied): await msg.reply_text(locale("no_user_application", "message", locale=msg.from_user).format(msg.command[1]), quote=should_quote(msg)) return