From 48868fbffa6c00257a1eabd743e05dd9a5d0f3ef Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 7 Aug 2008 20:16:39 +0200 Subject: [PATCH] add a warning for unraisable exceptions (but do not show it by default, as this is often irrelevant) --- Cython/Compiler/Nodes.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.26.2