Skip to content

Commit 0e1c4c4

Browse files
committed
Do not attempt to JSON deseralize objects of type None
1 parent d9964bd commit 0e1c4c4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

intercom/traits/api_resource.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ def custom_attribute_field(attribute):
2222

2323

2424
def typed_value(value):
25-
return hasattr(value, 'keys') and 'type' in value
25+
has_type = hasattr(value, 'keys') and 'type' in value
26+
is_type_none = value.get('type') is None
27+
return has_type and not is_type_none
2628

2729

2830
def datetime_value(value):

0 commit comments

Comments
 (0)