mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-01-25 00:34:19 +03:00
Fix invoke not raising ValueError when retries reach 0
This commit is contained in:
parent
8ecd2c2e06
commit
c1c6df9fd0
|
@ -410,7 +410,6 @@ class TelegramBareClient:
|
||||||
if result:
|
if result:
|
||||||
return result
|
return result
|
||||||
|
|
||||||
if retries <= 0:
|
|
||||||
raise ValueError('Number of retries reached 0.')
|
raise ValueError('Number of retries reached 0.')
|
||||||
finally:
|
finally:
|
||||||
if sender != self._sender:
|
if sender != self._sender:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user