From: SourceForge.net <no...@so...> - 2012-04-24 05:57:13
|
Feature Requests item #3441730, was opened at 2011-11-24 02:17 Message generated for change (Comment added) made by rupole You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551957&aid=3441730&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: pythonwin Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: kxroberto (kxroberto) Assigned to: Nobody/Anonymous (nobody) Summary: "error: Callback must return an integer, or None" needs info Initial Comment: In win32ui apps "'error: Callback must return an integer, or None'" is raised without any info which callback function/method (and optionally which Hook/Window) it is about. No traceback stack as well. Thus it is quite impossible to locate the problem. win32uimodule.cpp/Line 749: PyErr_SetString(ui_module_error, "Callback must return an integer, or None"); There should be some info raised with the exception. ---------------------------------------------------------------------- >Comment By: Roger Upole (rupole) Date: 2012-04-23 22:57 Message: Fixed in changeset 4198. The message will show the repr() of the offending callback method. ---------------------------------------------------------------------- Comment By: Roger Upole (rupole) Date: 2012-04-22 03:05 Message: This is actually worse than just a debugging nuisance. The code leaves an exception hanging, which further confuses the error handling, and will crash in python 3. I'll add the repr of the defective callback and make sure the original exception is printed and cleared. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551957&aid=3441730&group_id=78018 |