except Exception as ex:
LOG.exception(
u"%s: Could not retrieve the list of images." % __name__)
- return ex.message, 500
+ return str(ex), 500
def post(self):
"""
except Exception as ex:
LOG.exception(
u"%s: Could not retrieve image with id %s." % (__name__, id))
- return Response(ex.message, status=500,
+ return Response(str(ex), status=500,
mimetype='application/json')
def put(self, id):
except Exception as ex:
logging.exception(
u"%s: Could not retrieve image with id %s." % (__name__, id))
- return Response(ex.message, status=500,
+ return Response(str(ex), status=500,
mimetype='application/json')