| commit | cffd278213e780843d27ebdf3065ee861e5cf56b | [log] [tgz] |
|---|---|---|
| author | garciadeblas <gerardo.garciadeblas@telefonica.com> | Thu Jul 03 17:52:04 2025 +0200 |
| committer | garciadeblas <gerardo.garciadeblas@telefonica.com> | Fri Jul 04 09:27:30 2025 +0200 |
| tree | 65376b1adb0a1ca229edfeebf3cc897adf9f71a6 | |
| parent | 57dddce47e77682aab9e671ace737919941dae14 [diff] |
Replace use of assert by raise Change-Id: I6354be35eeed8f32660efd56b956ab5a2841f033 Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/osm_nbi/nbi.py b/osm_nbi/nbi.py index 07716cb..134d565 100644 --- a/osm_nbi/nbi.py +++ b/osm_nbi/nbi.py
@@ -2630,7 +2630,7 @@ # elif o == "--log-file": # log_file = a else: - assert False, "Unhandled option" + raise getopt.GetoptError(f"Unhandled option: {o}") if config_file: if not path.isfile(config_file): print(