Skip to content

Commit 27b1880

Browse files
My plan is simple: we catch the type error.
1 parent 2b8c1f6 commit 27b1880

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mypy/config_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ def parse_section(
624624
else:
625625
print(f"{prefix}Don't know what type {key} should have", file=stderr)
626626
continue
627-
except ValueError as err:
627+
except (ValueError, TypeError) as err:
628628
print(f"{prefix}{key}: {err}", file=stderr)
629629
continue
630630
if key == "strict":

0 commit comments

Comments
 (0)