[RELEASE] buggalo - automatic exception collector
#5
That's what I had in mind when asking. Just accept a single parameter that's intended to be a dict of information to also be passed to the url. So if I think there's a possibility that a website might return values that cause trouble, I could put in my except statement:

Code:
data = {}
data['url'] = urlvariable
data['codeblock'] = 'During fetch webpage'
data['db_dir_exists'] = os.isdir(directory)

buggalo.onExceptionRaised(data)

And then I can the web interface prints any included values in an Additional Information section or similar.
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
Logout Mark Read Team Forum Stats Members Help
[RELEASE] buggalo - automatic exception collector3