From 639eb90189b4584bbc63aa4c51ba4dd9c0f8314e Mon Sep 17 00:00:00 2001 From: Quentin Burg Date: Tue, 24 Oct 2023 14:33:51 +0200 Subject: [PATCH] :poop: :alembic: try to debug QueuePool Exception --- src/routes.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/routes.py b/src/routes.py index 70ce52c..409e429 100644 --- a/src/routes.py +++ b/src/routes.py @@ -177,10 +177,9 @@ async def post_operation( try: # Simulate the operation alone without sending it op.autofill() - tezos_manager.queue_operation(call_data.sender, op) - return { - "result": "ok" - } + db.close() + result = await tezos_manager.queue_operation(call_data.sender, op) + return result except MichelsonError as e: print("Received failing operation, discarding") print(e)