Skip to content

Commit

Permalink
fix: KeyError when section does not exist on setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoliwa committed Jan 3, 2019
1 parent 30e03eb commit e652604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flake8_nitpick/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def check_rules(self):
yield self.file_error(105, f"Missing sections:\n{output}")

generators = []
for section in expected_sections:
for section in expected_sections - missing_sections:
expected_dict = self.file_toml[section]
actual_dict = dict(setup_cfg[section])
for diff_type, key, values in dictdiffer.diff(expected_dict, actual_dict):
Expand Down

0 comments on commit e652604

Please sign in to comment.