From: Georg Brandl Date: Wed, 2 May 2007 20:02:29 +0000 (+0000) Subject: Actually raise an exception before calling ast_error_finish. X-Git-Tag: v2.6a1~1784 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b8ae3d01389f1b079303516aca24f61005c89ee1;p=thirdparty%2FPython%2Fcpython.git Actually raise an exception before calling ast_error_finish. Triggers an assertion otherwise. --- diff --git a/Python/ast.c b/Python/ast.c index eb4c68b885ed..be58f53cc51f 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -274,6 +274,8 @@ PyAST_FromNode(const node *n, PyCompilerFlags *flags, const char *filename, return Interactive(stmts, arena); } default: + PyErr_Format(PyExc_SystemError, + "invalid node %d for PyAST_FromNode", TYPE(n)); goto error; } error: