GNOME Bugzilla – Bug 345019
can dogtail exit with non-zero status when a problel
Last modified: 2006-09-06 14:54:46 UTC
Please describe the problem: As best I can tell, dogtail doesn't currently exit with a non-zero status when something goes wrong (for instance the accessibility stuff is disabled, et.al.). Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Downstream frysk tracker: http://sourceware.org/bugzilla/show_bug.cgi?id=2779
At least some errors cause dogtail to return non-zero. % python -c "from dogtail import tree; tree.root.application('sldkjflsdjf')" <failure to find the nonexistent app> % echo $? 1 What errors are you seeing that don't cause it to do so?
It ought to be raising an exception when something goes wrong; if uncaught this leads to the Python process exiting with a traceback in stderr and a non-zero exit code.
I never was able to reproduce this. Works for me.