removed tx from logging to pass tests

This commit is contained in:
Jürgen Eckel 2023-02-01 13:28:24 +01:00
parent 7ba7379650
commit d152b1df13
No known key found for this signature in database

View File

@ -81,17 +81,17 @@ class TransactionListApi(Resource):
message="Invalid transaction schema: {}".format(e.__cause__.message), message="Invalid transaction schema: {}".format(e.__cause__.message),
) )
except KeyError as e: except KeyError as e:
return make_error(400, "Invalid transaction ({}): {} : {}".format(type(e).__name__, e, tx)) return make_error(400, "Invalid transaction ({}): {}".format(type(e).__name__, e))
except ValidationError as e: except ValidationError as e:
return make_error(400, "Invalid transaction ({}): {} : {}".format(type(e).__name__, e, tx)) return make_error(400, "Invalid transaction ({}): {}".format(type(e).__name__, e))
except Exception as e: except Exception as e:
return make_error(500, "Invalid transaction ({}): {} : {}".format(type(e).__name__, e, tx), level="error") return make_error(500, "Invalid transaction ({}): {} - {}".format(type(e).__name__, e, tx), level="error")
with pool() as planet: with pool() as planet:
try: try:
planet.validate_transaction(tx_obj) planet.validate_transaction(tx_obj)
except ValidationError as e: except ValidationError as e:
return make_error(400, "Invalid transaction ({}): {} :{}".format(type(e).__name__, e, tx)) return make_error(400, "Invalid transaction ({}): {}".format(type(e).__name__, e))
except Exception as e: except Exception as e:
return make_error( return make_error(
500, "Invalid transaction ({}): {} : {}".format(type(e).__name__, e, tx), level="error" 500, "Invalid transaction ({}): {} : {}".format(type(e).__name__, e, tx), level="error"