Skip to content

Commit 7003502

Browse files
authored
zocalo.configure_rabbitmq: non-zero exit code on HTTPError (#238)
1 parent da6de6d commit 7003502

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

HISTORY.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ History
44

55
Unreleased
66
----------
7+
* ``zocalo.configure_rabbitmq``: non-zero exit code on ``HTTPError``
78

89
0.29.0 (2023-06-02)
910
-------------------

src/zocalo/cli/configure_rabbitmq.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import configparser
55
import functools
66
import logging
7+
import sys
78
from pathlib import Path
89
from typing import Any, Dict, List, Tuple
910

@@ -457,6 +458,7 @@ def run():
457458
update_config(api, binding_specs, permanent_bindings)
458459
except requests.exceptions.HTTPError as e:
459460
logger.error(e)
461+
sys.exit(1)
460462

461463

462464
if __name__ == "__main__":

0 commit comments

Comments
 (0)