Commit 1ef72181 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Fix loading of Portal Type after renaming of SynchronisationTool.

parent 30552c0e
...@@ -43,7 +43,8 @@ class ERP5BaseBroken(Broken, ERP5Base): ...@@ -43,7 +43,8 @@ class ERP5BaseBroken(Broken, ERP5Base):
def __getattr__(self, name): def __getattr__(self, name):
try: try:
return self.__dict__['__Broken_state__'][name] 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" raise AttributeError("state of broken %r object has no %r key"
% (self.__class__.__name__, name)) % (self.__class__.__name__, name))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment