diff --git a/pmb/config/init.py b/pmb/config/init.py index 9e0f4110..28812844 100644 --- a/pmb/config/init.py +++ b/pmb/config/init.py @@ -263,7 +263,7 @@ def ask_for_timezone(): if os.path.exists(tzpath): try: _, tz = tzpath.split(zoneinfo_path) - except: + except BaseException: pass if tz: logging.info(f"Your host timezone: {tz}") diff --git a/pyproject.toml b/pyproject.toml index 85beb08a..b9df3b4f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,8 +33,7 @@ line-length=100 # Assume Python 3.9 target-version = "py39" # E402: module import not on top of file, not possible for testcases -# E722: do not use bare except -lint.ignore=["E402", "E722"] +lint.ignore=["E402"] [tool.ruff.lint.extend-per-file-ignores] # F401: imported but unused, common for __init__.py files