From 4161e41a0e99aa2361df0d43494b960b56bf0533 Mon Sep 17 00:00:00 2001 From: Mathieu Provencher <> Date: Wed, 19 Jul 2023 09:54:09 -0400 Subject: [PATCH] print error on db connection issue --- stac_app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stac_app.py b/stac_app.py index 767acb4..8d1573b 100644 --- a/stac_app.py +++ b/stac_app.py @@ -76,8 +76,9 @@ async def startup_event(): try: await connect_to_db(app) break - except: + except Exception as e: print("ERROR: Connection to DB failed. Retrying in 3s. ({retries})") + print(e) time.sleep(3) retries -= 1