From: Stefan Behnel Date: Fri, 10 Apr 2009 07:18:27 +0000 (+0200) Subject: fix compiler crash - but not the underlying problem (see comments in #144) X-Git-Tag: 0.12.alpha0~320 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=413d1d3955461f58dc10cb19ced6162f072b68fd;p=cython.git fix compiler crash - but not the underlying problem (see comments in #144) --- 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: