Skip to content

Commit

Permalink
Merge pull request #2 from mshriver/fix-result-params-NoneType
Browse files Browse the repository at this point in the history
Handle when testcase_result.params is None
  • Loading branch information
mkoura committed May 1, 2018
2 parents 137b57e + 7d06204 commit 7cbc03a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dump2polarion/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def _gen_testcase(self, parent_element, result, records):
'value': utils.get_unicode_str(result['comment'])}
)

for param, value in six.iteritems(result.get('params', {})):
for param, value in six.iteritems(result.get('params', {}) or {}):
ElementTree.SubElement(
properties,
'property',
Expand Down

0 comments on commit 7cbc03a

Please sign in to comment.