Commit 359ac5b4 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

catch possible exception.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36554 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a877bdba
......@@ -93,9 +93,12 @@ class DivergenceMessage(ObjectMessage):
return None
def __eq__(self, other):
return self.__dict__ == other.__dict__
try:
return self.__dict__ == other.__dict__
except AttributeError:
return False
def __ne__(self, other):
return self.__dict__ != other.__dict__
return not self.__eq__(other)
allow_class(DivergenceMessage)
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