Commit ae38e9f6 authored by Georgios D. Tsoukalas's avatar Georgios D. Tsoukalas
Browse files

django-lib: fix missing 'raise' typo

parent 3a394356
......@@ -97,7 +97,7 @@ def get_request_dict(request):
data = request.raw_post_data
content_type = request.META.get("CONTENT_TYPE")
if content_type is None:
faults.BadRequest("Missing Content-Type header field")
raise faults.BadRequest("Missing Content-Type header field")
if content_type.startswith("application/json"):
try:
return json.loads(data)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment