mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-18 14:44:21 +01:00
Fixes a couple of bugs from the last merge
This commit is contained in:
@@ -63,13 +63,13 @@ class Carrier:
|
|||||||
# Adding this here just for completeness. We should never end up here. The Carrier only sends txs
|
# Adding this here just for completeness. We should never end up here. The Carrier only sends txs
|
||||||
# handed by the Responder, who receives them from the Watcher, who checks that the tx can be properly
|
# handed by the Responder, who receives them from the Watcher, who checks that the tx can be properly
|
||||||
# deserialized
|
# deserialized
|
||||||
logging.info("[Carrier] tx {} cannot be deserialized".format(txid))
|
logger.info("[Carrier] tx {} cannot be deserialized".format(txid))
|
||||||
receipt = Receipt(delivered=False, reason=RPC_DESERIALIZATION_ERROR)
|
receipt = Receipt(delivered=False, reason=RPC_DESERIALIZATION_ERROR)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# If something else happens (unlikely but possible) log it so we can treat it in future releases
|
# If something else happens (unlikely but possible) log it so we can treat it in future releases
|
||||||
logger.error("JSONRPCException.", error_code=e)
|
logger.error("JSONRPCException.", error_code=e)
|
||||||
receipt = self.Receipt(delivered=False, reason=UNKNOWN_JSON_RPC_EXCEPTION)
|
receipt = Receipt(delivered=False, reason=UNKNOWN_JSON_RPC_EXCEPTION)
|
||||||
|
|
||||||
return receipt
|
return receipt
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user