Skip to content

Commit

Permalink
add class setter back for tests / future extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
czue committed Jul 7, 2015
1 parent bdac028 commit bc807d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions corehq/ex-submodules/couchforms/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,7 @@ def _handle_known_error(e, instance):
u"Warning in case or stock processing "
u"for form {}: {}."
).format(instance._id, error_message))
instance.__class__ = XFormError
instance.doc_type = 'XFormError'
instance.problem = error_message
return instance
Expand Down

0 comments on commit bc807d5

Please sign in to comment.