Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[gi-overrides] fix exception block so it works in Python 2.5

  • Loading branch information...
commit 9baec8ed1c5d99c1677a75eaa1d38912f41f0b2d 1 parent 5ac534a
John (J5) Palmieri authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 gi/overrides/Gio.py
View
5 gi/overrides/Gio.py
@@ -23,6 +23,8 @@
from gi.repository import GLib
+import sys
+
Gio = modules['Gio']._introspection_module
__all__ = []
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.