an error message has been deleted by error

This commit is contained in:
gwen 2013-12-04 15:48:19 +01:00
parent 029452ccbc
commit 48b662997e
1 changed files with 2 additions and 1 deletions

View File

@ -451,7 +451,8 @@ class Option(BaseOption):
do_validation(value, force_index)
else:
if not isinstance(value, list):
raise ValueError(_("which must be a list").format(value,
raise ValueError(_("invalid value {0} for option {1} "
"which must be a list").format(value,
self._name))
for index, val in enumerate(value):
do_validation(val, index)