Log error in case gdrive.db folder can't be found

This commit is contained in:
Ozzie Isaacs 2022-02-06 14:23:35 +01:00
parent 2d49589e4b
commit 41f89af959

View File

@ -196,7 +196,8 @@ def migrate():
if not os.path.exists(cli.gdpath): if not os.path.exists(cli.gdpath):
try: try:
Base.metadata.create_all(engine) Base.metadata.create_all(engine)
except Exception: except Exception as ex:
log.error("Error connect to database: {} - {}".format(cli.gdpath, ex))
raise raise
migrate() migrate()