Commit 93088c74 authored by Jameson Rollins's avatar Jameson Rollins

FIX error

parent 314944a8
......@@ -116,7 +116,7 @@ def load_budget(name_or_path, freq=None):
else:
if name_or_path not in IFOS:
raise RuntimeError("Unknonw IFO '{}' (available IFOs: {}).".format(
raise RuntimeError("Unknown IFO '{}' (available IFOs: {}).".format(
name_or_path,
IFOS,
))
......
......@@ -133,8 +133,10 @@ def main():
freq = freq_from_spec(args.freq)
except IndexError:
parser.exit(2, "Improper frequency specification: {}\n".format(args.freq))
budget = load_budget(args.IFO, freq=freq)
name = budget.name
try:
budget = load_budget(args.IFO, freq=freq)
except RuntimeError as e:
parser.exit(2, str(e)+'\n')
ifo = budget.ifo
plot_style = getattr(budget, 'plot_style', {})
trace = None
......
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