From 9e87017a38cbe9de555000278835d8229b1c5bb2 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 8 Apr 2015 07:27:39 -0400 Subject: [PATCH] [1.8.x] Fixed #24600 -- Fixed inaccurate example in template Context docs. Thanks pattypatpat for the report. Backport of 3acefcefeb5283473ac35d7e842027814d57d574 from master --- 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 63d93d8c5c7..9f468b2dbfd 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'