Skip to content
Snippets Groups Projects
Commit 7b48d010 authored by Vermaat's avatar Vermaat
Browse files

Only apply spyne monkey patch if needed

git-svn-id: https://humgenprojects.lumc.nl/svn/mutalyzer/branches/spyne@581 eb6bd6ab-9ccd-42b9-aceb-e2899b4a52f1
parent bdf95fab
No related branches found
No related tags found
No related merge requests found
......@@ -896,6 +896,9 @@ def monkey_patch_spyne():
"""
from spyne.model.fault import Fault
if hasattr(Fault, '_to_dict'):
return
def _to_dict(self, *args, **kwargs):
return dict(Fault=dict(faultcode=self.faultcode,
faultstring=self.faultstring))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment