Skip to content
Snippets Groups Projects
Commit b57acef8 authored by Jameson Rollins's avatar Jameson Rollins
Browse files

cli: fix for consistent error handling

parent 3404000f
No related branches found
No related tags found
No related merge requests found
Pipeline #189965 passed
......@@ -135,7 +135,7 @@ def main():
try:
freq = freq_from_spec(args.freq)
except IndexError:
parser.exit(2, "Improper frequency specification: {}\n".format(args.freq))
parser.error(f"Improper frequency specification: {args.freq}")
try:
budget = load_budget(args.IFO, freq=freq)
except RuntimeError as e:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment