diff --git a/product/ERP5Type/dynamic/lazy_class.py b/product/ERP5Type/dynamic/lazy_class.py index 791a63ce80f54090af973f83b0b26dcf1958fb00..06135528445810e6f0eb32e13f6d3d30856e9282 100644 --- a/product/ERP5Type/dynamic/lazy_class.py +++ b/product/ERP5Type/dynamic/lazy_class.py @@ -43,7 +43,8 @@ class ERP5BaseBroken(Broken, ERP5Base): def __getattr__(self, name): try: return self.__dict__['__Broken_state__'][name] - except KeyError: + # TypeError: SynchronizationTool => SynchronisationTool + except (KeyError, TypeError): raise AttributeError("state of broken %r object has no %r key" % (self.__class__.__name__, name))