From 5bb793aeabe62316fe35504bae8815f271d35ea0 Mon Sep 17 00:00:00 2001 From: Rafael Date: Fri, 24 Apr 2015 10:50:49 +0200 Subject: [PATCH] Allow values of custom attributes to be None. --- intercom/lib/flat_store.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/intercom/lib/flat_store.py b/intercom/lib/flat_store.py index 1c330436..7f426812 100644 --- a/intercom/lib/flat_store.py +++ b/intercom/lib/flat_store.py @@ -12,7 +12,8 @@ def __init__(self, *args, **kwargs): def __setitem__(self, key, value): if not ( isinstance(value, numbers.Real) or - isinstance(value, six.string_types) + isinstance(value, six.string_types) or + value is None ): raise ValueError( "custom data only allows string and real number values")