Skip to content

Commit 2567322

Browse files
authored
Merge pull request #4055 from ashnaaseth2325-oss/fix/correlateRC-exit-noop
fix: ensure exit() is called for invalid units in correlateRC.py
2 parents f7290b3 + 0b68105 commit 2567322

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flow/util/correlateRC.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def parse_args():
7373
res_scale = 1e3
7474
else:
7575
print("unknown resistance unit")
76-
exit
76+
exit(1)
7777

7878
cap_unit = args.cap_unit
7979
if cap_unit == "ff":
@@ -82,7 +82,7 @@ def parse_args():
8282
cap_scale = 1e-12
8383
else:
8484
print("unknown capacitance unit")
85-
exit
85+
exit(1)
8686

8787

8888
def makeDict():

0 commit comments

Comments
 (0)