1
0
Fork 0

generate: generate: Explicitly catch ConfigError

Catch ConfigError instead of Exception, which also renders noqa BLE001
obsolete.

Signed-off-by: Enno Tensing <tenno@suij.in>
This commit is contained in:
Enno Tensing 2025-07-22 16:17:46 +02:00
parent 72062edbf5
commit 6963fdea2a
Signed by: tenno
GPG key ID: 95265603BD36E66C

View file

@ -71,7 +71,7 @@ def main() -> None:
sys.exit(1) sys.exit(1)
try: try:
ct = create_container_from_config(data, logger) ct = create_container_from_config(data, logger)
except Exception as e: # noqa: BLE001 except ConfigError as e:
logger.log_error(e) logger.log_error(e)
sys.exit(1) sys.exit(1)
print(ct) print(ct)