2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-28 12:57:52 +00:00

Remove unneeded try...except block

This commit is contained in:
Dan 2022-03-14 12:07:34 +01:00
parent d0e2235835
commit 58eb10a676

View File

@ -251,10 +251,7 @@ class Client(Methods, Scaffold):
return self.start()
def __exit__(self, *args):
try:
self.stop()
except ConnectionError:
pass
self.stop()
async def __aenter__(self):
return await self.start()