From 3acefcefeb5283473ac35d7e842027814d57d574 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 8 Apr 2015 07:27:39 -0400 Subject: [PATCH] Fixed #24600 -- Fixed inaccurate example in template Context docs. Thanks pattypatpat for the report. --- docs/ref/templates/api.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt index b8e74b75ec..ee8b61eeff 100644 --- a/docs/ref/templates/api.txt +++ b/docs/ref/templates/api.txt @@ -410,7 +410,9 @@ dictionary syntax:: 'bar' >>> del c['foo'] >>> c['foo'] - '' + Traceback (most recent call last): + ... + KeyError: 'foo' >>> c['newvariable'] = 'hello' >>> c['newvariable'] 'hello'