mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-23 22:49:50 +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)
|
md = markdown.Markdown(extensions=extensions, safe_mode=safe_mode)
|
||||||
return md.convert(text)
|
return md.convert(text)
|
||||||
|
|
||||||
except ImportError:
|
except (ImportError, AttributeError):
|
||||||
apply_markdown = None
|
apply_markdown = None
|
||||||
|
|
||||||
# Yaml is optional
|
# Yaml is optional
|
||||||
|
|
Loading…
Reference in New Issue
Block a user