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:
parent
72062edbf5
commit
6963fdea2a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue