From 0b681052fa6b0fa51c7fc0a9ab4368257731be99 Mon Sep 17 00:00:00 2001 From: Ashnaa Seth Date: Wed, 25 Mar 2026 20:20:13 +0000 Subject: [PATCH] util: fix bare exit no-op in correlateRC.py exit without parentheses is a no-op in Python; replace with exit(1) so invalid res_unit/cap_unit arguments terminate the script immediately instead of continuing with undefined res_scale/cap_scale variables. Signed-off-by: Ashnaa Seth Signed-off-by: ashnaaseth2325-oss --- flow/util/correlateRC.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flow/util/correlateRC.py b/flow/util/correlateRC.py index 5c49e8384b..65702ee102 100755 --- a/flow/util/correlateRC.py +++ b/flow/util/correlateRC.py @@ -73,7 +73,7 @@ def parse_args(): res_scale = 1e3 else: print("unknown resistance unit") - exit + exit(1) cap_unit = args.cap_unit if cap_unit == "ff": @@ -82,7 +82,7 @@ def parse_args(): cap_scale = 1e-12 else: print("unknown capacitance unit") - exit + exit(1) def makeDict():