We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97b87a7 commit f9b3014Copy full SHA for f9b3014
1 file changed
python_utils/converters.py
@@ -83,7 +83,7 @@ def to_int(
83
raise TypeError('unknown argument for regexp parameter: %r' % regexp)
84
85
try:
86
- if regexp:
+ if regexp and input_:
87
match = regexp.search(input_)
88
if match:
89
input_ = match.groups()[-1]
0 commit comments