mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Remove unneeded try...except block
This commit is contained in:
parent
d0e2235835
commit
58eb10a676
1 changed files with 1 additions and 4 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue