Skip to content

Commit 58eb10a

Browse files
committed
Remove unneeded try...except block
1 parent d0e2235 commit 58eb10a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pyrogram/client.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,7 @@ def __enter__(self):
251251
return self.start()
252252

253253
def __exit__(self, *args):
254-
try:
255-
self.stop()
256-
except ConnectionError:
257-
pass
254+
self.stop()
258255

259256
async def __aenter__(self):
260257
return await self.start()

0 commit comments

Comments
 (0)