From 998ee9febacde9eebf4825b34c8009b0f1edb4f7 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Sun, 5 May 2019 17:04:06 -0400 Subject: [PATCH] resolve integration tests fixed --- lbrynet/extras/daemon/Daemon.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lbrynet/extras/daemon/Daemon.py b/lbrynet/extras/daemon/Daemon.py index da18a8fe6..d4c9ae8e9 100644 --- a/lbrynet/extras/daemon/Daemon.py +++ b/lbrynet/extras/daemon/Daemon.py @@ -13,6 +13,7 @@ from binascii import hexlify, unhexlify from traceback import format_exc from aiohttp import web from functools import wraps +from google.protobuf.message import DecodeError from torba.client.wallet import Wallet from torba.client.baseaccount import SingleKey, HierarchicalDeterministic @@ -3475,10 +3476,13 @@ class Daemon(metaclass=JSONRPCServerType): async def resolve(self, urls): results = await self.ledger.resolve(urls) if results: - claims = self.stream_manager._convert_to_old_resolve_output(results) - await self.storage.save_claims_for_resolve([ - value for value in claims.values() if 'error' not in value - ]) + try: + claims = self.stream_manager._convert_to_old_resolve_output(results) + await self.storage.save_claims_for_resolve([ + value for value in claims.values() if 'error' not in value + ]) + except DecodeError: + pass return results def _old_get_temp_claim_info(self, tx, txo, address, claim_dict, name, bid):