mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-23 14:40:06 +03:00
Merge cd8372960d
into a07212389d
This commit is contained in:
commit
261a9e1ecb
|
@ -421,7 +421,7 @@ try:
|
|||
md = markdown.Markdown(extensions=extensions, safe_mode=safe_mode)
|
||||
return md.convert(text)
|
||||
|
||||
except ImportError:
|
||||
except (ImportError, AttributeError):
|
||||
apply_markdown = None
|
||||
|
||||
# Yaml is optional
|
||||
|
|
Loading…
Reference in New Issue
Block a user