Change exception from legacy code.

Change all except: clause to except Exception as e:  for further revise.
This commit is contained in:
林檎
2017-03-06 11:53:17 +08:00
parent 0bc4f52783
commit 6e3d4877ed
4 changed files with 24 additions and 25 deletions
+1 -1
View File
@@ -299,7 +299,7 @@ def setup_db():
try:
conn = engine.connect()
except:
except Exception as e:
content = ub.session.query(ub.Settings).first()
content.config_calibre_dir = None
content.db_configured = False