From 41f89af9595afc8fe617cdca4f316bb32ccb615b Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Sun, 6 Feb 2022 14:23:35 +0100 Subject: [PATCH] Log error in case gdrive.db folder can't be found --- cps/gdriveutils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cps/gdriveutils.py b/cps/gdriveutils.py index eae175a0..57f272ff 100644 --- a/cps/gdriveutils.py +++ b/cps/gdriveutils.py @@ -196,7 +196,8 @@ def migrate(): if not os.path.exists(cli.gdpath): try: Base.metadata.create_all(engine) - except Exception: + except Exception as ex: + log.error("Error connect to database: {} - {}".format(cli.gdpath, ex)) raise migrate()