TemplateResponse fails when all arguments are kwargs and context is passed as None #2764
Unanswered
Yazan-Sharaya
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When calling Jijna2Templates.TemplateResponse with keyword arguments and passing context=None like:
This call fails with the following error:
AttributeError: 'NoneType' object has no attribute 'get'
Which is caused by calling
.get()
oncontext
on this line.I think passing
context
as None is expected, and the type hint and default value forcontext
in the function declaration kinda implies that.Beta Was this translation helpful? Give feedback.
All reactions