New useful module.

0 views
Skip to first unread message

John Sutherland

unread,
Jan 12, 2008, 2:37:38 PM1/12/08
to frontpyth...@googlegroups.com
Normally I would have waited on announcing this, but I think this is
useful enough to do it now..

I've added a module, if included in your Plugin (in the main .py
file), will be sure to log all Python exceptions..

It seems taht sometimes, Python exceptions would get 'lost' somewhere
down the pipe.. I don't know why.. But now if you include the
PyFR.Debugging module, it'll be sure to log it.

For example.. Say I mess up my getController in my Appliance class..
For some reason, when i would run it, the exceptions wouldn't get
logged. No idea why..

But including this module makes it so I get the following exception in
my system.log:

Jan 12 12:29:03 vale Front Row[3936]: Traceback (most recent call last):
Jan 12 12:29:03 vale Front Row[3936]: File "/Users/garion/Projects/
FrontPython-svn/trunk/SDK/PyFR/Appliance.py", line 36, in
applianceController\n return self.getController()
Jan 12 12:29:03 vale Front Row[3936]: File "/Users/garion/Projects/
FrontPython-svn/trunk/SDK/FrontPython.py", line 21, in getController
\n return xMyWaitController.alloc().initWithText_("Loading Myth")
Jan 12 12:29:03 vale Front Row[3936]: NameError: global name
'xMyWaitController' is not defined

Sweet eh? Available now in svn..

(Hrrm.. looks like I need to do some split()s in there, I hate seeing
\n's...) But at least its better than nothing!

--John


Jon Christopher

unread,
Jan 12, 2008, 2:38:54 PM1/12/08
to frontpyth...@googlegroups.com
Thank you!
Reply all
Reply to author
Forward
0 new messages