Skip to content

Commit f9b3014

Browse files
committed
fixed small mypy issues
1 parent 97b87a7 commit f9b3014

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python_utils/converters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def to_int(
8383
raise TypeError('unknown argument for regexp parameter: %r' % regexp)
8484

8585
try:
86-
if regexp:
86+
if regexp and input_:
8787
match = regexp.search(input_)
8888
if match:
8989
input_ = match.groups()[-1]

0 commit comments

Comments
 (0)