Don't use BaseException.message

This patch fixes the deprecation warning when testing under py26, and
gets us one step closer to Python 3 compatibility.

Change-Id: Ia6ac113a917eca075ef5abee937634bd4e488fa5
This commit is contained in:
kgriffs
2013-05-24 11:52:43 -04:00
parent 7c957ea301
commit 33ae83c843

View File

@@ -30,7 +30,7 @@ def read_json(stream):
return json.load(stream)
except ValueError as ex:
raise MalformedJSON(ex.message)
raise MalformedJSON(ex)
def to_json(obj):