Skip to content

Commit 5bb793a

Browse files
author
Rafael
committed
Allow values of custom attributes to be None.
1 parent 949056d commit 5bb793a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

intercom/lib/flat_store.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ def __init__(self, *args, **kwargs):
1212
def __setitem__(self, key, value):
1313
if not (
1414
isinstance(value, numbers.Real) or
15-
isinstance(value, six.string_types)
15+
isinstance(value, six.string_types) or
16+
value is None
1617
):
1718
raise ValueError(
1819
"custom data only allows string and real number values")

0 commit comments

Comments
 (0)