From 1bbd55d543bc701df9b32bf5d181a8ca3855be67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 6 Mar 2022 18:01:59 +0100 Subject: [PATCH] Manage None as value of PYSON In issue11280 review393771002 --- proteus/pyson.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proteus/pyson.py b/proteus/pyson.py index 3caf79be1b..59c6a5ce9e 100644 --- a/proteus/pyson.py +++ b/proteus/pyson.py @@ -525,7 +525,10 @@ class In(PYSON): @staticmethod def eval(dct, context): - return dct['k'] in dct['v'] + if dct['v']: + return dct['k'] in dct['v'] + else: + return False class Date(PYSON):