summaryrefslogtreecommitdiff
path: root/docs/ref/templates/api.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref/templates/api.txt')
-rw-r--r--docs/ref/templates/api.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt
index a76d325e0f..177371055e 100644
--- a/docs/ref/templates/api.txt
+++ b/docs/ref/templates/api.txt
@@ -317,7 +317,9 @@ dictionary syntax::
'bar'
>>> del c['foo']
>>> c['foo']
- ''
+ Traceback (most recent call last):
+ ...
+ KeyError: 'foo'
>>> c['newvariable'] = 'hello'
>>> c['newvariable']
'hello'