mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-18 04:02:35 +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:
|
||||
- id: isort
|
||||
- repo: https://github.com/PyCQA/flake8
|
||||
rev: 3.9.0
|
||||
rev: 5.0.0
|
||||
hooks:
|
||||
- id: flake8
|
||||
additional_dependencies:
|
||||
|
|
|
@ -82,7 +82,7 @@ try:
|
|||
)
|
||||
md_filter_add_syntax_highlight(md)
|
||||
return md.convert(text)
|
||||
except ImportError:
|
||||
except (ImportError, AttributeError):
|
||||
apply_markdown = None
|
||||
markdown = None
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user