print message to help debugging selector on error tls-sprint
authorsylvain.thenault@logilab.fr
Wed, 11 Mar 2009 11:01:52 +0100
branchtls-sprint
changeset 1044 3672a7c86784
parent 1038 2e8a3e556351
child 1045 5040a5835e4d
print message to help debugging selector on error
cwvreg.py
--- a/cwvreg.py	Tue Mar 10 19:36:21 2009 +0100
+++ b/cwvreg.py	Wed Mar 11 11:01:52 2009 +0100
@@ -30,6 +30,9 @@
                 return sorted(impl.expected_ifaces)
         except AttributeError:
             pass # old-style vobject classes with no accepts_interfaces
+        except:
+            print 'bad selector %s on %s' % (obj.__select__, obj)
+            raise
         return ()
 
 def expand_parent_classes(iface):