Log error in case gdrive.db folder can't be found
This commit is contained in:
parent
2d49589e4b
commit
41f89af959
@ -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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user