From 58eb10a676053669279b79ddc576c6ff4087daa3 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 14 Mar 2022 12:07:34 +0100 Subject: [PATCH] Remove unneeded try...except block --- pyrogram/client.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pyrogram/client.py b/pyrogram/client.py index ce76920f..7d3dbd37 100644 --- a/pyrogram/client.py +++ b/pyrogram/client.py @@ -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()