From: garciadeblas Date: Thu, 3 Jul 2025 15:52:04 +0000 (+0200) Subject: Replace use of assert by raise X-Git-Tag: v18.0.0~8 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=cffd278213e780843d27ebdf3065ee861e5cf56b;p=osm%2FNBI.git Replace use of assert by raise Change-Id: I6354be35eeed8f32660efd56b956ab5a2841f033 Signed-off-by: garciadeblas --- 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 @@ 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(