2012-02-19, 06:10
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:
And then I can the web interface prints any included values in an Additional Information section or similar.
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.