commit | 5d0e72016953322c1de4252c588836efdad5a4fb | [log] [tgz] |
---|---|---|
author | Filipe Varela <fcvarela@gmail.com> | Mon Oct 13 11:50:33 2014 +0100 |
committer | Filipe Varela <fcvarela@gmail.com> | Mon Oct 13 11:50:33 2014 +0100 |
tree | 8c0bd5c2026b19201eb36ccedbb7484259cdae9b | |
parent | 5e14a6f3ea0e9fca52f16375e98219659b4de09b [diff] |
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):