Cleaned up some more stale TODO's and FIXME's (or did / fixed the things)

This commit is contained in:
Akita Noek
2016-06-27 14:40:41 -04:00
parent 4bf50b2d6a
commit 831c4c2fef
6 changed files with 7 additions and 24 deletions
-1
View File
@@ -2301,7 +2301,6 @@ class JobTemplateSurveySpec(GenericAPIView):
try:
obj.survey_spec = json.dumps(request.data)
except ValueError:
# TODO: Log
return Response(dict(error="Invalid JSON when parsing survey spec."), status=status.HTTP_400_BAD_REQUEST)
if "name" not in obj.survey_spec:
return Response(dict(error="'name' missing from survey spec."), status=status.HTTP_400_BAD_REQUEST)