fix uncaught ValueError in hashX_unsubscribe

This commit is contained in:
Jack Robison 2020-05-25 10:25:04 -04:00
parent 34eae6e608
commit 4bbd850898
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -1220,7 +1220,10 @@ class LBRYElectrumX(SessionBase):
return await self.address_status(hashX) return await self.address_status(hashX)
async def hashX_unsubscribe(self, hashX, alias): 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): def address_to_hashX(self, address):
try: try: