From 4bbd850898e42319db751feead7f71f8c1a05ea8 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Mon, 25 May 2020 10:25:04 -0400 Subject: [PATCH] fix uncaught ValueError in hashX_unsubscribe --- lbry/wallet/server/session.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lbry/wallet/server/session.py b/lbry/wallet/server/session.py index c72278992..186755b73 100644 --- a/lbry/wallet/server/session.py +++ b/lbry/wallet/server/session.py @@ -1220,7 +1220,10 @@ class LBRYElectrumX(SessionBase): return await self.address_status(hashX) async def hashX_unsubscribe(self, hashX, alias): - del self.hashX_subs[hashX] + try: + del self.hashX_subs[hashX] + except ValueError: + pass def address_to_hashX(self, address): try: