From 027f9c456093b53b8d331f8c0cf6df2e6a96a58c Mon Sep 17 00:00:00 2001
From: Diego Escobedo <diego@escobedo.com>
Date: Thu, 27 Oct 2022 22:59:23 -0700
Subject: [PATCH] wait for db script update

---
 backend/metering_billing/management/commands/wait_for_db.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/metering_billing/management/commands/wait_for_db.py b/backend/metering_billing/management/commands/wait_for_db.py
index 8b4d52ac2..75509f4fe 100644
--- a/backend/metering_billing/management/commands/wait_for_db.py
+++ b/backend/metering_billing/management/commands/wait_for_db.py
@@ -15,6 +15,6 @@ def handle(self, *args, **options):
         while not db_connection:
             try:
                 db_connection = connections["default"]
-            except OperationalError:
+            except:
                 time.sleep(1)
         print("Database is available")