From: Stefan Behnel Date: Thu, 7 Aug 2008 18:16:39 +0000 (+0200) Subject: add a warning for unraisable exceptions (but do not show it by default, as this is... X-Git-Tag: 0.9.8.1~84 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=48868fbffa6c00257a1eabd743e05dd9a5d0f3ef;p=cython.git add a warning for unraisable exceptions (but do not show it by default, as this is often irrelevant) --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index d06324c9..98dc1de6 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -944,6 +944,8 @@ class FuncDefNode(StatNode, BlockNode): if err_val is not None or exc_check: code.putln('__Pyx_AddTraceback("%s");' % self.entry.qualified_name) else: + warning(self.entry.pos, "Unraisable exception in function '%s'." \ + % self.entry.qualified_name, 0) code.putln( '__Pyx_WriteUnraisable("%s");' % self.entry.qualified_name)