From 126c1872964f7cac597767147eb6b73ea027d3c6 Mon Sep 17 00:00:00 2001 From: Vaibhav Hemant Dixit Date: Thu, 29 Jun 2023 16:15:15 +0000 Subject: [PATCH] Fix exception handling --- scripts/db_migrator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/db_migrator.py b/scripts/db_migrator.py index 244eb12495..0f009985cd 100755 --- a/scripts/db_migrator.py +++ b/scripts/db_migrator.py @@ -59,7 +59,7 @@ def __init__(self, namespace, socket=None): try: if os.path.isfile(MINIGRAPH_FILE): self.minigraph_data = parse_xml(MINIGRAPH_FILE) - except Exception: + except Exception as e: log.log_error('Caught exception while trying to parse minigraph: ' + str(e)) pass