if db_uri is None:
try:
db_uri = get_config().get('database', 'URI')
- except:
+ except Exception:
db_uri = find_sqlite_dburi()
if '://' not in db_uri:
print("DB dirs:", db_dirs)
print("DB URI:", find_sqlite_dburi())
+
if __name__ == '__main__':
test()