Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #4726 -- Added a note about the exception raised by QuerySet.__…

…getitem__.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6155 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 813c48e6eb146a06d40b4d11efebee1d1493665d 1 parent da0fef7
Malcolm Tredinnick authored September 14, 2007

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. 3  docs/request_response.txt
3  docs/request_response.txt
@@ -183,6 +183,9 @@ subclass of dictionary. Exceptions are outlined here:
183 183
 
184 184
     * ``__getitem__(key)`` -- Returns the value for the given key. If the key
185 185
       has more than one value, ``__getitem__()`` returns the last value.
  186
+      Raises ``django.utils.datastructure.MultiValueDictKeyError`` if the key
  187
+      does not exist (fortunately, this is a subclass of Python's standard
  188
+      ``KeyError``, so you can stick to catching ``KeyError``).
186 189
 
187 190
     * ``__setitem__(key, value)`` -- Sets the given key to ``[value]``
188 191
       (a Python list whose single element is ``value``). Note that this, as

0 notes on commit 813c48e

Please sign in to comment.
Something went wrong with that request. Please try again.