diff options
author | Russell Keith-Magee <russell@keith-magee.com> | 2010-01-22 15:31:14 +0000 |
---|---|---|
committer | Russell Keith-Magee <russell@keith-magee.com> | 2010-01-22 15:31:14 +0000 |
commit | f114fbecc2a486df7fc65f7de1b635520ef1d5ba (patch) | |
tree | bd5ba3d3289844867fdf387dcf6b9b027fad4643 /django/test/utils.py | |
parent | 7ca9d9306c5e5e175668af513725a16ba3b26d9d (diff) | |
download | django-f114fbecc2a486df7fc65f7de1b635520ef1d5ba.tar.gz |
Fixed #12659 -- Return a more meaningful KeyError message when ContextList lookups fail. Thanks to rodriguealcazar for the suggestion.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12274 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/test/utils.py')
-rw-r--r-- | django/test/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/test/utils.py b/django/test/utils.py index 1129976e4e..b6ab39901b 100644 --- a/django/test/utils.py +++ b/django/test/utils.py @@ -15,7 +15,7 @@ class ContextList(list): for subcontext in self: if key in subcontext: return subcontext[key] - raise KeyError + raise KeyError(key) else: return super(ContextList, self).__getitem__(key) |