We can't access the "key" outside of the template_loader variable. That could explain why template_cache["missing.html"] is a KeyError