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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user