]> git.phdru.name Git - m_librarian.git/commitdiff
Cleanup: Fix flake8 E722 do not use bare except
authorOleg Broytman <phd@phdru.name>
Mon, 23 Oct 2017 21:17:22 +0000 (00:17 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 23 Oct 2017 21:17:22 +0000 (00:17 +0300)
m_librarian/db.py
m_librarian/download.py

index 628675ef1e2c9d3ce4573ba1240b542784d5e499..d81619da0d39e92e14d05bd7b8bd7e6546cbc109 100755 (executable)
@@ -147,7 +147,7 @@ def open_db(db_uri=None):
     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:
index db09f12f08e263b786abef9fbb804a2ae7de7ed6..30412013123eb317883464c7fef5d9c1cf0c790e 100755 (executable)
@@ -21,7 +21,7 @@ def _compile_format():
         compile_format = False
         try:
             format = get_config().get('download', 'format')
-        except:
+        except Exception:
             return
     got_percent = False
     compiled = []