summaryrefslogtreecommitdiff
path: root/opendc/api/v2/users/userId/endpoint.py
diff options
context:
space:
mode:
Diffstat (limited to 'opendc/api/v2/users/userId/endpoint.py')
-rw-r--r--opendc/api/v2/users/userId/endpoint.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/opendc/api/v2/users/userId/endpoint.py b/opendc/api/v2/users/userId/endpoint.py
index 7f1ce84f..b7519973 100644
--- a/opendc/api/v2/users/userId/endpoint.py
+++ b/opendc/api/v2/users/userId/endpoint.py
@@ -12,7 +12,7 @@ def DELETE(request):
request.check_required_parameters(path={'userId': 'int'})
except exceptions.ParameterError as e:
- return Response(400, e.message)
+ return Response(400, str(e))
# Instantiate a User and make sure they exist
@@ -44,7 +44,7 @@ def GET(request):
request.check_required_parameters(path={'userId': 'int'})
except exceptions.ParameterError as e:
- return Response(400, e.message)
+ return Response(400, str(e))
# Instantiate a User and make sure they exist
@@ -75,7 +75,7 @@ def PUT(request):
path={'userId': 'int'})
except exceptions.ParameterError as e:
- return Response(400, e.message)
+ return Response(400, str(e))
# Instantiate a User and make sure they exist