File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -340,12 +340,12 @@ def format_execution_result(
340340def _check_jinja (jinja_env : Any ) -> None :
341341 try :
342342 from jinja2 import Environment
343- except ImportError :
343+ except ImportError : # pragma: no cover
344344 raise RuntimeError (
345345 "Attempt to set 'jinja_env' to a value other than None while Jinja2 is not installed.\n "
346346 "Please install Jinja2 to render GraphiQL with Jinja2.\n "
347347 "Otherwise set 'jinja_env' to None to use the simple regex renderer."
348348 )
349349
350- if not isinstance (jinja_env , Environment ):
350+ if not isinstance (jinja_env , Environment ): # pragma: no cover
351351 raise TypeError ("'jinja_env' has to be of type jinja2.Environment." )
Original file line number Diff line number Diff line change 88# and only relevant if rendering GraphiQL with Jinja
99try :
1010 from jinja2 import Environment
11- except ImportError :
11+ except ImportError : # pragma: no cover
1212 pass
1313
1414from typing_extensions import TypedDict
You can’t perform that action at this time.
0 commit comments