mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-24 06:25:45 +00:00
removed tx from logging to pass tests
This commit is contained in:
parent
7ba7379650
commit
d152b1df13
@ -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"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user