fix?
This commit is contained in:
@ -1,4 +1,5 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
|
import contextlib
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Generator
|
from typing import Generator
|
||||||
|
|
||||||
@ -39,6 +40,7 @@ class JsonConverter(BaseSession):
|
|||||||
ss._dc_id = client.session.dc_id # type: ignore
|
ss._dc_id = client.session.dc_id # type: ignore
|
||||||
ss._port = client.session.port # type: ignore
|
ss._port = client.session.port # type: ignore
|
||||||
string_session = ss.save()
|
string_session = ss.save()
|
||||||
|
with contextlib.suppress(Exception):
|
||||||
asyncio.run(client.disconnect()) # type: ignore
|
asyncio.run(client.disconnect()) # type: ignore
|
||||||
del client
|
del client
|
||||||
del ss
|
del ss
|
||||||
|
|||||||
Reference in New Issue
Block a user