Skip to content

Commit eea9f12

Browse files
authored
Implement non-blocking TCP connection (
1 parent 70620a1 commit eea9f12

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pyrogram/session/session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from pyrogram.crypto import mtproto
3232
from pyrogram.errors import (
3333
RPCError, InternalServerError, AuthKeyDuplicated,
34-
FloodWait, FloodPremiumWait,
34+
FloodWait,
3535
ServiceUnavailable, BadMsgNotification,
3636
SecurityCheckMismatch
3737
)
@@ -407,7 +407,7 @@ async def invoke(
407407
while True:
408408
try:
409409
return await self.send(query, timeout=timeout)
410-
except (FloodWait, FloodPremiumWait) as e:
410+
except (FloodWait) as e:
411411
amount = e.value
412412

413413
if amount > sleep_threshold >= 0:

0 commit comments

Comments
 (0)