commit | 7b66a7a44b27c307d9f9c7ad47221f2d9d025864 | [log] [tgz] |
---|---|---|
author | Justin Yip <yipjustin@prediction.io> | Mon Jan 12 14:25:26 2015 -0800 |
committer | Justin Yip <yipjustin@prediction.io> | Mon Jan 12 14:25:26 2015 -0800 |
tree | 2729882a4b258500ac8ad17caceb79fb1447b067 | |
parent | 99389a4de93b03e5d2a471644a42b67745a20dda [diff] | |
parent | 5d0e72016953322c1de4252c588836efdad5a4fb [diff] |
Merge pull request #9 from fcvarela/develop Python 3 support
diff --git a/predictionio/connection.py b/predictionio/connection.py index 9609047..2c79d64 100644 --- a/predictionio/connection.py +++ b/predictionio/connection.py
@@ -153,7 +153,7 @@ # Try to extract the json. try: self.json_body = json.loads(body) - except ValueError, ex: + except ValueError as ex: self.json_body = None def set_error(self, error):