Skip to content

Commit 502ec62

Browse files
My plan is simple: we catch the type error.
1 parent b40cbe7 commit 502ec62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/config_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ def parse_section(
635635
else:
636636
print(f"{prefix}Don't know what type {key} should have", file=stderr)
637637
continue
638-
except ValueError as err:
638+
except (ValueError, TypeError) as err:
639639
print(f"{prefix}{key}: {err}", file=stderr)
640640
continue
641641
if key == "strict":

0 commit comments

Comments
 (0)