Skip to content

Commit bc97d5d

Browse files
authored
Fix AttributeError: 'str' object has no attribute 'get'
1 parent 3fd4268 commit bc97d5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎intercom/traits/api_resource.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def custom_attribute_field(attribute):
2323

2424
deftyped_value(value):
2525
has_type=hasattr(value, 'keys') and'type'invalue
26-
is_type_none=value.get('type') isNone
26+
is_type_none=has_typeandvalue.get('type') isNone
2727
returnhas_typeandnotis_type_none
2828

2929

0 commit comments

Comments
(0)