Commits

Anonymous committed e250519

0.12.2dev: revert r10242 per fschwarz' request, as it breaks some Agilo tests, see #8658 for details.

Comments (0)

Files changed (1)

                     break
             def maybe_init(self, compmgr, init=init, cls=new_class):
                 if cls not in compmgr.components:
+                    compmgr.components[cls] = self
                     if init:
-                        init(self)
-                    compmgr.components[cls] = self
+                        try:
+                            init(self)
+                        except:
+                            del compmgr.components[cls]
+                            raise
             maybe_init._original = init
             new_class.__init__ = maybe_init