From d152b1df132931b2e4fcff1acb230250cad3337c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Eckel?= Date: Wed, 1 Feb 2023 13:28:24 +0100 Subject: [PATCH] removed tx from logging to pass tests --- planetmint/web/views/transactions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/planetmint/web/views/transactions.py b/planetmint/web/views/transactions.py index ff46be8..d0ba1a7 100644 --- a/planetmint/web/views/transactions.py +++ b/planetmint/web/views/transactions.py @@ -81,17 +81,17 @@ class TransactionListApi(Resource): message="Invalid transaction schema: {}".format(e.__cause__.message), ) 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: - 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: - 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: try: planet.validate_transaction(tx_obj) 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: return make_error( 500, "Invalid transaction ({}): {} : {}".format(type(e).__name__, e, tx), level="error"