Fix invoke not raising ValueError when retries reach 0

This commit is contained in:
Lonami Exo 2017-09-30 16:18:16 +02:00
parent 8ecd2c2e06
commit c1c6df9fd0

View File

@ -410,7 +410,6 @@ class TelegramBareClient:
if result:
return result
if retries <= 0:
raise ValueError('Number of retries reached 0.')
finally:
if sender != self._sender: