Skip to content

Commit

Permalink
added small error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
cburgard committed Apr 8, 2020
1 parent 6845dd1 commit e148e46
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion proposals/draft/001-kickoff/root/roows.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
if k.GetClassName() == "RooWorkspace":
ws = k.ReadObj()
break
tool = ROOT.RooJSONFactoryWSTool(ws)
tool = ROOT.RooJSONFactoryWSTool(ws)
else:
print("unknown file type "+infile)
exit(0)

ws.Print("t")

Expand All @@ -41,5 +44,6 @@
ws2.Print("t")

print("reexporting now")
tool2.exportYML("test.yml")
tool2.exportJSON("test.js")

0 comments on commit e148e46

Please sign in to comment.