sq close the goddamn session
This commit is contained in:
parent
daae0b2836
commit
aa83bbd637
1 changed files with 1 additions and 0 deletions
|
@ -31,6 +31,7 @@ async def execute_command(method, params, conf_path=None):
|
|||
api = await LBRYAPIClient.get_client(conf_path)
|
||||
await api.status()
|
||||
except (ClientConnectorError, ConnectionError):
|
||||
await api.session.close()
|
||||
print("Could not connect to daemon. Are you sure it's running?")
|
||||
return 1
|
||||
|
||||
|
|
Loading…
Reference in a new issue