Fixes a couple of bugs from the last merge

This commit is contained in:
Sergi Delgado Segura
2019-10-10 13:01:21 +01:00
parent 36434552d2
commit 6b058dfaf9

View File

@@ -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