projects
/
osm
/
NBI.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57dddce
)
Replace use of assert by raise
71/15271/2
author
garciadeblas
<gerardo.garciadeblas@telefonica.com>
Thu, 3 Jul 2025 15:52:04 +0000
(17:52 +0200)
committer
garciadeblas
<gerardo.garciadeblas@telefonica.com>
Fri, 4 Jul 2025 07:27:30 +0000
(09:27 +0200)
Change-Id: I6354be35eeed8f32660efd56b956ab5a2841f033
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osm_nbi/nbi.py
patch
|
blob
|
history
diff --git
a/osm_nbi/nbi.py
b/osm_nbi/nbi.py
index
07716cb
..
134d565
100644
(file)
--- a/
osm_nbi/nbi.py
+++ b/
osm_nbi/nbi.py
@@
-2630,7
+2630,7
@@
if __name__ == "__main__":
# 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(