Merge branch '8784-dir-listings'
[arvados.git] / sdk / python / arvados / errors.py
index c9eda2d1c9c6eb306daedba17fc63c3ec89348d2..feb6660a774893d10163ef06d718b1416b4c045b 100644 (file)
@@ -8,7 +8,7 @@ from collections import OrderedDict
 class ApiError(apiclient_errors.HttpError):
     def _get_reason(self):
         try:
-            return '; '.join(json.loads(self.content)['errors'])
+            return '; '.join(json.loads(self.content.decode('utf-8'))['errors'])
         except (KeyError, TypeError, ValueError):
             return super(ApiError, self)._get_reason()