Commit 48868fbf authored by Stefan Behnel's avatar Stefan Behnel

add a warning for unraisable exceptions (but do not show it by default, as...

add a warning for unraisable exceptions (but do not show it by default, as this is often irrelevant)
parent a012b541
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment