Skip to content
Snippets Groups Projects
Commit a6c2641a authored by Paul Armstrong's avatar Paul Armstrong
Browse files

Log error.

parent d2e22921
No related branches found
No related tags found
No related merge requests found
......@@ -58,8 +58,9 @@ def get_list_of_clones(engine: Engine) -> List[str]:
logging.info("Getting list of databases...")
connection = engine.connect()
databases = [row[0] for row in connection.execute(query).fetchall()]
except:
except Exception as exc:
logging.info("Failed to get list of databases...")
logging.info(exc)
finally:
connection.close()
engine.dispose()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment