Commit 3e0a978d by Jens Alm

Fixed YAMLParser = None

parent 20c7e605
...@@ -108,7 +108,8 @@ if yaml: ...@@ -108,7 +108,8 @@ if yaml:
except ValueError, exc: except ValueError, exc:
raise ErrorResponse(status.HTTP_400_BAD_REQUEST, raise ErrorResponse(status.HTTP_400_BAD_REQUEST,
{'detail': 'YAML parse error - %s' % unicode(exc)}) {'detail': 'YAML parse error - %s' % unicode(exc)})
else:
YAMLParser = None
class PlainTextParser(BaseParser): class PlainTextParser(BaseParser):
""" """
......
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