Skip to content

Commit

Permalink
Merge pull request #6 from AlexVerrico/patch-jijna3.1.x-support
Browse files Browse the repository at this point in the history
Add support for Jinja 3.1.x

Thanks for your PR.
  • Loading branch information
KnugiHK authored Apr 1, 2022
2 parents d6c57db + 2781049 commit d1c9cfc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flask_hcaptcha.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@

try:
from flask import request
from jinja2 import Markup
try:
from jinja2 import Markup
except ImportError:
from markupsafe import Markup
import requests
except ImportError as ex:
print("Missing dependencies")
Expand Down

0 comments on commit d1c9cfc

Please sign in to comment.