mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 15:34:52 +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()
|
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…
Reference in a new issue