From 16be03e4a206c24b00dc1d2d3c740dffbbfc4ac9 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 10 Jan 2007 18:51:35 +0000 Subject: Some more changes related to the new except syntax and semantics, by Collin Winter. --- Python/symtable.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Python/symtable.c') diff --git a/Python/symtable.c b/Python/symtable.c index 708e18cafd..d275cb9034 100644 --- a/Python/symtable.c +++ b/Python/symtable.c @@ -1335,7 +1335,8 @@ symtable_visit_excepthandler(struct symtable *st, excepthandler_ty eh) if (eh->type) VISIT(st, expr, eh->type); if (eh->name) - VISIT(st, expr, eh->name); + if (!symtable_add_def(st, eh->name, DEF_LOCAL)) + return 0; VISIT_SEQ(st, stmt, eh->body); return 1; } -- cgit v1.2.1