mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
Fixed YAMLParser = None
This commit is contained in:
parent
20c7e605c9
commit
3e0a978dd9
|
@ -108,7 +108,8 @@ if yaml:
|
|||
except ValueError, exc:
|
||||
raise ErrorResponse(status.HTTP_400_BAD_REQUEST,
|
||||
{'detail': 'YAML parse error - %s' % unicode(exc)})
|
||||
|
||||
else:
|
||||
YAMLParser = None
|
||||
|
||||
class PlainTextParser(BaseParser):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user