improve session close error message

This commit is contained in:
Victor Shyba 2020-09-11 14:05:51 -03:00
parent 39a4c4e590
commit d6bcbd631f

View file

@ -246,7 +246,7 @@ class Lbrycrd:
async def rpc(self, method, params=None):
if self.session.closed:
raise Exception("session is closed! We are shutting down.")
raise Exception("session is closed! RPC attempted during shutting down.")
message = {
"jsonrpc": "1.0",
"id": "1",