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

View File

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