diff --git a/proteus/pyson.py b/proteus/pyson.py index 0740e0a892..0f2ed608c6 100644 --- a/proteus/pyson.py +++ b/proteus/pyson.py @@ -509,7 +509,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):