diff --git a/src/linkahead/apiutils.py b/src/linkahead/apiutils.py index b0b65d8d6819fd98ce0337800ab27284d5e1940a..53336a4a548d07c445e5c517a5b1ccfb5544091b 100644 --- a/src/linkahead/apiutils.py +++ b/src/linkahead/apiutils.py @@ -291,10 +291,10 @@ def compare_entities(entity0: Optional[Entity] = None, if entity0 is entity1: return diff - # FIXME Why not simply return a diff which says that the types are different?g + # FIXME Why not simply return a diff which says that the types are different? if type(entity0) is not type(entity1): - raise ValueError( - "Comparison of different Entity types is not supported.") + diff[0]["type"] = type(entity0) + diff[1]["type"] = type(entity1) # compare special attributes for attr in SPECIAL_ATTRIBUTES: