Skip to content

Commit a4b15ec

Browse files
author
Rasmus Lager
committed
not comparing types using isinstance instead in contact_manager
1 parent b18f7ac commit a4b15ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ganapi/contact_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def normalize_entity(self, entity):
2929
"""
3030
data = super(ContactManager, self).normalize_entity(entity)
3131

32-
if not type(dict()) == type(data.get('attributes')):
32+
if not isinstance(data.get('attributes'), type(dict())):
3333
data['attributes'] = dict()
3434

3535
list_manager = ListManager(self.api)

0 commit comments

Comments
 (0)