Navigation Menu

Skip to content

Commit

Permalink
[gi-overrides] fix exception block so it works in Python 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
John (J5) Palmieri committed Mar 21, 2011
1 parent 5ac534a commit 9baec8e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gi/overrides/Gio.py
Expand Up @@ -23,6 +23,8 @@

from gi.repository import GLib

import sys

Gio = modules['Gio']._introspection_module

__all__ = []
Expand Down Expand Up @@ -109,7 +111,8 @@ def __async_result_handler(self, obj, result, user_data):
(result_callback, error_callback, real_user_data) = user_data
try:
ret = obj.call_finish(result)
except Exception as e:
except Exception:
etype, e = sys.exc_info()[:2]
# return exception as value
if error_callback:
error_callback(obj, e, real_user_data)
Expand Down

0 comments on commit 9baec8e

Please sign in to comment.