From 9ff6ffcf4252198181174d048c09a31a9c2b4a0e Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Thu, 17 Mar 2022 23:01:26 -0400 Subject: [PATCH] uncaught error --- scribe/hub/session.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scribe/hub/session.py b/scribe/hub/session.py index ca1b627..4a7ac1e 100644 --- a/scribe/hub/session.py +++ b/scribe/hub/session.py @@ -1372,7 +1372,10 @@ class LBRYElectrumX(asyncio.Protocol): async def hashX_unsubscribe(self, hashX, alias): sessions = self.session_manager.hashx_subscriptions_by_session[hashX] - sessions.remove(id(self)) + try: + sessions.remove(id(self)) + except KeyError: + pass if not sessions: self.hashX_subs.pop(hashX, None)