diff --git a/lbrynet/daemon/json_response_encoder.py b/lbrynet/daemon/json_response_encoder.py index a265bd8f9..57ab7c5ca 100644 --- a/lbrynet/daemon/json_response_encoder.py +++ b/lbrynet/daemon/json_response_encoder.py @@ -1,3 +1,4 @@ +import logging from decimal import Decimal from binascii import hexlify from datetime import datetime @@ -8,6 +9,9 @@ from lbrynet.wallet.dewies import dewies_to_lbc from lbrynet.wallet.ledger import MainNetLedger +log = logging.getLogger(__name__) + + class JSONResponseEncoder(JSONEncoder): def __init__(self, *args, ledger: MainNetLedger, **kwargs): @@ -75,6 +79,9 @@ class JSONResponseEncoder(JSONEncoder): ) except BadSignatureError: output['valid_signature'] = False + except ValueError: + log.exception(f'txo.id: {txo.id}, txo.channel.id:{txo.channel.id}, output: {output}') + output['valid_signature'] = False if txo.script.is_claim_name: output['type'] = 'claim'