Commit b57acef8 authored by Jameson Rollins's avatar Jameson Rollins

cli: fix for consistent error handling

parent 3404000f
Pipeline #189965 passed with stages
in 2 minutes and 6 seconds
......@@ -135,7 +135,7 @@ def main():
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}")
budget = load_budget(args.IFO, freq=freq)
except RuntimeError as e:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment