Skip to content

Commit 110eb49

Browse files
committed
Merge pull request #1 from neocortex/allow-none-custom-data
Allow values of custom attributes to be None.
2 parents 8099166 + 5bb793a commit 110eb49

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)