Skip to content

Commit 29fd6ab

Browse files
committed
catch type error as well.
1 parent e3314a0 commit 29fd6ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/mlink_expr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def __init__(self, v, is_link=False):
107107
x and [int(x)] or [])
108108
else:
109109
self.evaluate = lambda x: compiled.evaluate([int(y) for y in x])
110-
except ValueError:
110+
except (ValueError, TypeError):
111111
if is_link:
112112
v = [None if x == '-1' else x for x in v]
113113
self.evaluate = lambda x: x in v

0 commit comments

Comments
 (0)