Fix bandit alert
All checks were successful
CI / test (push) Successful in 49s
CI / test (debian, docker.io/library/debian:13, python3) (push) Successful in 1m32s
Lint / test (push) Successful in 40s

This commit is contained in:
Miguel Jacq 2026-06-29 20:53:15 +10:00
parent 42321a8ec9
commit d4fd42522d
Signed by: mig5
GPG key ID: 03906B4110AAD3B8

View file

@ -379,7 +379,7 @@ def parse_config(path: Path, fmt: str | None = None) -> tuple[str, Any]:
raise raise
except _MALFORMED_CONFIG_ERRORS as exc: except _MALFORMED_CONFIG_ERRORS as exc:
# Normalise the per-parser "this file is malformed" errors into one # Normalise the per-parser "this file is malformed" errors into one
# type: json.JSONDecodeError / tomllib.TOMLDecodeError (ValueError # json.JSONDecodeError / tomllib.TOMLDecodeError (ValueError
# subclasses), PyYAML's YAMLError, configparser.Error, and # subclasses), PyYAML's YAMLError, configparser.Error, and
# xml.etree.ElementTree.ParseError (raised by defusedxml on XML whose # xml.etree.ElementTree.ParseError (raised by defusedxml on XML whose
# structure/element name is not well-formed). A bad input file is # structure/element name is not well-formed). A bad input file is