From 413d1d3955461f58dc10cb19ced6162f072b68fd Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 10 Apr 2009 09:18:27 +0200 Subject: [PATCH] fix compiler crash - but not the underlying problem (see comments in #144) --- Cython/Compiler/Nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index e67f6af2..5ea5cfa4 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -458,7 +458,7 @@ class CArrayDeclaratorNode(CDeclaratorNode): size = self.dimension.get_constant_result_code() try: size = int(size) - except ValueError: + except (ValueError, TypeError): # runtime constant? pass else: -- 2.26.2