diff options
| author | Chris McDonough <chrism@plope.com> | 2010-11-02 02:35:16 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-11-02 02:35:16 -0400 |
| commit | 8aedc6dbfcfbe4f1d7ea390eafc2b2046ff7bf27 (patch) | |
| tree | be83ae875ab6bca6210970867c0700ca46257ec7 | |
| parent | a76e99959ecc3220c317cb2942332a9fc342f3a4 (diff) | |
| download | pyramid-8aedc6dbfcfbe4f1d7ea390eafc2b2046ff7bf27.tar.gz pyramid-8aedc6dbfcfbe4f1d7ea390eafc2b2046ff7bf27.tar.bz2 pyramid-8aedc6dbfcfbe4f1d7ea390eafc2b2046ff7bf27.zip | |
right exception type
| -rw-r--r-- | pyramid/interfaces.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyramid/interfaces.py b/pyramid/interfaces.py index 461a0d82c..294613c13 100644 --- a/pyramid/interfaces.py +++ b/pyramid/interfaces.py @@ -81,12 +81,12 @@ class IBeforeRender(Interface): def __setitem__(name, value): """ Set a name/value pair into the dictionary which is passed to a renderer as the renderer globals dictionary. If the ``name`` already - exists in the target dictionary, a :exc:`NameError` will be raised.""" + exists in the target dictionary, a :exc:`KeyError` will be raised.""" def update(d): """ Update the renderer globals dictionary with another dictionary ``d``. If any of the key names in the source dictionary already exist - in the target dictionary, a :exc:`NameError` will be raised""" + in the target dictionary, a :exc:`KeyError` will be raised""" def __contains__(k): """ Return ``True`` if ``k`` exists in the renderer globals |
