aboutsummaryrefslogtreecommitdiffstats
path: root/examples/objectstore/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/objectstore/views.py')
-rw-r--r--examples/objectstore/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/objectstore/views.py b/examples/objectstore/views.py
index 47f5147a..ae545394 100644
--- a/examples/objectstore/views.py
+++ b/examples/objectstore/views.py
@@ -67,7 +67,7 @@ class StoredObject(View):
"""
pathname = os.path.join(OBJECT_STORE_DIR, key)
if not os.path.exists(pathname):
- return Response(status.HTTP_404_NOT_FOUND)
+ return Response(status=status.HTTP_404_NOT_FOUND)
return Response(pickle.load(open(pathname, 'rb')))
def put(self, request, key):
@@ -84,6 +84,6 @@ class StoredObject(View):
"""
pathname = os.path.join(OBJECT_STORE_DIR, key)
if not os.path.exists(pathname):
- return Response(status.HTTP_404_NOT_FOUND)
+ return Response(status=status.HTTP_404_NOT_FOUND)
os.remove(pathname)
return Response()