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:
parent
d0e2235835
commit
58eb10a676
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user