Skip to content

Commit d99bb81

Browse files
committed
chore: not depend on Jinja2 if use simple renderer
1 parent 2e7a8eb commit d99bb81

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

graphql_server/render_graphiql.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
import re
55
from typing import Any, Dict, Optional, Tuple
66

7-
from jinja2 import Environment
7+
try:
8+
from jinja2 import Environment
9+
except ImportError:
10+
pass
11+
812
from typing_extensions import TypedDict
913

1014
GRAPHIQL_VERSION = "2.2.0"

0 commit comments

Comments
 (0)