From ad5c0cb0a7f65f912f762e52b99b201f7782b80d Mon Sep 17 00:00:00 2001 From: Administrator Date: Sat, 8 Apr 2023 14:43:08 +0300 Subject: [PATCH] value error you stupid --- helpers/alice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/alice.py b/helpers/alice.py index 67ecc38..433f690 100644 --- a/helpers/alice.py +++ b/helpers/alice.py @@ -45,7 +45,7 @@ class Processor: hse_id = self.message.replace(' ', '') try: user = mongo.users_collection.find_one({"hse_id": int(hse_id)}) - except KeyError: + except ValueError: return { "text": "Извини, не могу разобрать код, назови его еще раз" }