Do not pop the error trap twice (pointed out by Sascha Silbe in #1123).

This commit is contained in:
Benjamin Berg 2009-08-28 18:48:13 +02:00
parent 78d64031c3
commit d3c9dc535b

View File

@ -29,7 +29,7 @@ def _property_get_trapped(window, prop, prop_type):
# We just log a message
error = gtk.gdk.error_trap_pop()
if gtk.gdk.error_trap_pop():
if error:
logging.debug('Received X Error (%i) while getting '
'a property on a window' % error)