id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 16866 Handling empty list of candidates in select_template function Silver_Ghost Silver_Ghost "[https://code.djangoproject.com/browser/django/trunk/django/template/loader.py#L180 django.template.loader.select_template] expects list of template names and select first loadable. If there are some template names in list and no one from them couldn't be loaded then raising TemplateDoesNotExist exception is the right decision. But if there isn't any template names in the list then >>Template<