﻿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<<DoesNotExist is wrong exception, I think.

So maybe checks if list is empty and raise exception with message like ""I can't load any template for you because you didn't gave me any possible variants""? "	Bug	closed	Template system	dev	Normal	fixed	select_template	Silver_Ghost	Accepted	1	0	0	0	1	0
