After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 645644 - Exceptions do not match original pyatspi exceptions
Exceptions do not match original pyatspi exceptions
Status: RESOLVED FIXED
Product: pyatspi2
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Mike Gorse
pyatspi2 maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2011-03-25 19:06 UTC by Mike Gorse
Modified: 2015-02-27 16:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch. (17.30 KB, patch)
2011-03-25 19:16 UTC, Mike Gorse
none Details | Review
updated patch that includes text, editableText, and document. (37 bytes, patch)
2011-03-28 02:38 UTC, Mike Gorse
none Details | Review
updated patch including text, editableText, and document (32.02 KB, patch)
2011-03-28 02:40 UTC, Mike Gorse
none Details | Review
updated patch. (30.86 KB, patch)
2011-03-31 23:23 UTC, Mike Gorse
none Details | Review

Description Mike Gorse 2011-03-25 19:06:51 UTC
When trying to access an object which no longer exists, pyatspi2 may raise a RuntimeError or a glib.GError, where the old code would raise LookupError or DataError.  This causes problems for applications that expect particular exceptions and are now sent an exception other than what they were expecting.
Comment 1 Mike Gorse 2011-03-25 19:16:53 UTC
Created attachment 184206 [details] [review]
Patch.

This partly fixes things (it doesn't fix Text for instance).
Comment 2 Mike Gorse 2011-03-28 02:38:52 UTC
Created attachment 184410 [details] [review]
updated patch that includes text, editableText, and document.
Comment 3 Mike Gorse 2011-03-28 02:40:32 UTC
Created attachment 184411 [details] [review]
updated patch including text, editableText, and document

(hopefully I'll actually upload the patch this time)
Comment 4 Mike Gorse 2011-03-31 23:23:00 UTC
Created attachment 184833 [details] [review]
updated patch.

Fixes editableText.
Removes unnecessary tries.
Catch all RuntimeErrors for compatibility with pygobject 2.26.
Comment 5 Mike Gorse 2011-09-02 20:26:55 UTC
This patch was committed a long time ago.
Comment 6 André Klapper 2015-02-27 16:40:43 UTC
[Moving at-spi/pyatspi2 bugs to separate product. See bug 740075]