From 67a025f168498a481ce10798ed66fa3d79af008d Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 24 Oct 2017 00:17:22 +0300 Subject: [PATCH] Cleanup: Fix flake8 E722 do not use bare except --- m_librarian/db.py | 2 +- m_librarian/download.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/m_librarian/db.py b/m_librarian/db.py index 628675e..d81619d 100755 --- a/m_librarian/db.py +++ b/m_librarian/db.py @@ -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: diff --git a/m_librarian/download.py b/m_librarian/download.py index db09f12..3041201 100755 --- a/m_librarian/download.py +++ b/m_librarian/download.py @@ -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 = [] -- 2.39.5