Fix for invalid db path

This commit is contained in:
Ozzie Isaacs 2017-04-26 19:21:40 +01:00
parent 8fe2b840e9
commit 2d918bfb72

View File

@ -286,6 +286,11 @@ def setup_db():
global cc_classes
if config.config_calibre_dir is None or config.config_calibre_dir == u'':
content = ub.session.query(ub.Settings).first()
content.config_calibre_dir = None
content.db_configured = False
ub.session.commit()
config.loadSettings()
return False
dbpath = os.path.join(config.config_calibre_dir, "metadata.db")