Skip to content

Commit

Permalink
Avoid 500 when xform generation fails
Browse files Browse the repository at this point in the history
  • Loading branch information
dorey committed Oct 12, 2016
1 parent 44b15f7 commit ca1f6bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kpi/models/asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ def generate_xml_from_source(source,
u'warnings': warnings,
})
except Exception as err:
xml = None
details.update({
u'status': u'failure',
u'error_type': type(err).__name__,
Expand Down

0 comments on commit ca1f6bb

Please sign in to comment.