]> git.phdru.name Git - xsetbg.git/commitdiff
Style: Fix `flake8` error E722 bare 'except'
authorOleg Broytman <phd@phdru.name>
Sat, 24 Feb 2024 13:49:55 +0000 (16:49 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 24 Feb 2024 14:01:30 +0000 (17:01 +0300)
xsetbg-wsgi.py
xsetbg_db.py

index 5a435b4414942ba405aa83f061c36acddccdc98b..161a2b5bd5bfaf3187cbc99e3c79a3e654da8e30 100755 (executable)
@@ -65,7 +65,7 @@ def app(env, start_response):
 
     try:
         commands[command]()
-    except:
+    except Exception:
         status = '500 Error'
         response_headers = [('Content-type', 'text/plain')]
         start_response(status, response_headers)
index 406ca9609809caf9c77714a2b66e3091f0af7425..dfa65fce7f307daaaac90c88daadb1143be63674 100755 (executable)
@@ -57,7 +57,7 @@ class SQLiteMassInsert(object):
 db_dirs = []
 try:
     xsetbg_db_path = xsetbg_conf.get('xsetbg', 'database')
-except:
+except Exception:
     xsetbg_db_path = None
 
 if not xsetbg_db_path: