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):