2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 13:27:47 +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() return self.start()
def __exit__(self, *args): def __exit__(self, *args):
try: self.stop()
self.stop()
except ConnectionError:
pass
async def __aenter__(self): async def __aenter__(self):
return await self.start() return await self.start()