From 51e5e2efc6f96166ec3df6fe52a41deefe0fcbe3 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 8 Apr 2015 07:27:39 -0400 Subject: [PATCH] [1.7.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 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'