| commit | 40faf965702d9e3eada8e6d16ad0da6f29b3fc17 | [log] [tgz] |
|---|---|---|
| author | garciadeblas <gerardo.garciadeblas@telefonica.com> | Thu Jul 03 17:52:04 2025 +0200 |
| committer | garciadeblas <gerardo.garciadeblas@telefonica.com> | Wed Oct 01 17:07:10 2025 +0200 |
| tree | 83fa9e2bfb787beb48aadd703609f2bd5f9769eb | |
| parent | a7ab909b82708162a1fcdfd0838344e2c84f9cb9 [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(