Fix tests when value is None.
This commit is contained in:
parent
503d1ba111
commit
cf0f19474c
|
@ -207,7 +207,7 @@ class Product(WineMixin, metaclass=PoolMeta):
|
|||
operator = clause[1]
|
||||
try:
|
||||
value = int(value)
|
||||
except ValueError:
|
||||
except (ValueError, TypeError):
|
||||
value = None
|
||||
if value:
|
||||
if operator == '=':
|
||||
|
|
Loading…
Reference in New Issue