(The reason this doesn't crash or actually cause a problem is PyGTK catches exceptions in signal handlers and continues execution. In this case since the function should not return None anyway the behaviour was correct for GTK+).
(The reason this doesn't crash or actually cause a problem is PyGTK catches exceptions in signal handlers and continues execution. In this case since the function should not return None anyway the behaviour was correct for GTK+).