fix(compat): catch AttributeError since EntryPoints object has no get()

This commit is contained in:
MarkoM-dot 2023-11-27 00:21:01 +01:00
parent 1db19f4b2d
commit cc21757244
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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