Fix StopTransmission in asyncio by inheriting from StopAsyncIteration

Instead of StopIteration
This commit is contained in:
Dan 2019-03-27 15:44:29 +01:00
parent 7f7f9768fd
commit 29940fbc66

View File

@ -26,7 +26,7 @@ from ...session.internals import MsgId
class BaseClient:
class StopTransmission(StopIteration):
class StopTransmission(StopAsyncIteration):
pass
APP_VERSION = "Pyrogram \U0001f525 {}".format(__version__)