mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-18 12:12:19 +03:00
fix(compat): catch AttributeError since EntryPoints object has no get()
This commit is contained in:
parent
1db19f4b2d
commit
cc21757244
|
@ -13,7 +13,7 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
- repo: https://github.com/PyCQA/flake8
|
- repo: https://github.com/PyCQA/flake8
|
||||||
rev: 3.9.0
|
rev: 5.0.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: flake8
|
- id: flake8
|
||||||
additional_dependencies:
|
additional_dependencies:
|
||||||
|
|
|
@ -82,7 +82,7 @@ try:
|
||||||
)
|
)
|
||||||
md_filter_add_syntax_highlight(md)
|
md_filter_add_syntax_highlight(md)
|
||||||
return md.convert(text)
|
return md.convert(text)
|
||||||
except ImportError:
|
except (ImportError, AttributeError):
|
||||||
apply_markdown = None
|
apply_markdown = None
|
||||||
markdown = None
|
markdown = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user