From 35f04f1179faa58382caddb1809b03cf4d6171f4 Mon Sep 17 00:00:00 2001 From: Andrebcd4 <45767571+Andrebcd4@users.noreply.github.com> Date: Tue, 24 Sep 2019 10:27:31 +0300 Subject: [PATCH] Except SlowModeWaitError --- telethon/client/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/client/users.py b/telethon/client/users.py index accdba77..15fcf771 100644 --- a/telethon/client/users.py +++ b/telethon/client/users.py @@ -82,7 +82,7 @@ class UserMethods: e.__class__.__name__, e) await asyncio.sleep(2) - except (errors.FloodWaitError, errors.SlowmodeWaitError, errors.FloodTestPhoneWaitError) as e: + except (errors.FloodWaitError, errors.SlowModeWaitError, errors.FloodTestPhoneWaitError) as e: if utils.is_list_like(request): request = request[request_index]