Closed abetomo closed 6 years ago
A temp fix:
from facebook_business.adobjects.abstractobject import AbstractObject
def abstract_object_eq(self, other):
return other is not None and hasattr(other, 'export_all_data') and \
self.export_all_data() == other.export_all_data()
AbstractObject.__eq__ = abstract_object_eq
This should fix in our next release.
https://github.com/facebook/facebook-python-business-sdk/commit/dd8d9de4519f98feb5bfc3e9271d18be8110c6a6#diff-5c2ee73c9f7f6f616946f19e23a7dae9R58
It seems that the automatically generated code is wrong.
hasattr(targeting, 'export_all_data')
->
hasattr(other, 'export_all_data')