From: Oleg Broytman Date: Mon, 23 Oct 2017 21:17:22 +0000 (+0300) Subject: Cleanup: Fix flake8 E722 do not use bare except X-Git-Tag: 0.0.16~10 X-Git-Url: https://git.phdru.name/?p=m_librarian.git;a=commitdiff_plain;h=67a025f168498a481ce10798ed66fa3d79af008d Cleanup: Fix flake8 E722 do not use bare except --- 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 = []