Skip to content

Commit

Permalink
return None for unknown modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
kratsg committed Oct 20, 2020
1 parent 073391f commit 43054fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pyhf/writexml.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ def build_modifier(spec, modifierspec, channelname, samplename, sampledata):
modifierspec['name'], modifierspec['type']
)
)
return None

modifier = ET.Element(mod_map[modifierspec['type']], **attrs)
return modifier
Expand Down

0 comments on commit 43054fc

Please sign in to comment.