[RELEASE] buggalo - automatic exception collector
#11
Hi all,
I sent a pull request for getting v1.0.1 included in the repo today.
Two new features were added - one is the option to add extra data as we talked about in this thread.
The other is a function decorator to make it easier to wrap a function in the try..except block required by buggalo.
I use it in my tv guide addon - https://github.com/twinther/script.tvgui...ui.py#L174
Code:
@buggalo.buggalo_try_except({'method' : 'TVGuide.onInit'})
def onInit(self):
    self._hideControl(self.C_MAIN_MOUSE_CONTROLS)
    self._showControl(self.C_MAIN_OSD, self.C_MAIN_LOADING)
    self.getControl(self.C_MAIN_LOADING_TIME_LEFT).setLabel(strings(BACKGROUND_UPDATE_IN_PROGRESS))
    self.setFocus(self.getControl(self.C_MAIN_LOADING_CANCEL))

Please let me know if you have other ideas for improvements Smile
Reply


Messages In This Thread
passing in variables? - by Bstrdsmkr - 2012-02-18, 03:30
[No subject] - by twinther - 2012-02-18, 12:56
[No subject] - by Martijn - 2012-02-18, 13:20
[No subject] - by Bstrdsmkr - 2012-02-19, 06:10
[No subject] - by Martijn - 2012-02-20, 19:09
[No subject] - by bossanova808 - 2012-02-21, 07:09
[No subject] - by twinther - 2012-02-21, 18:09
[No subject] - by twinther - 2012-02-21, 20:55
[No subject] - by twinther - 2012-02-26, 10:14
RE: [RELEASE] buggalo - automatic exception collector - by twinther - 2012-03-18, 18:04
Logout Mark Read Team Forum Stats Members Help
[RELEASE] buggalo - automatic exception collector3