Skip to content

Commit

Permalink
Fix duplicated context error
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrebarbaruiva committed Jan 11, 2021
1 parent b75d760 commit ae704b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ipdb/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,10 @@ def get_config():
# only if they use setup.cfg
if filepath.endswith('setup.cfg') or filepath.endswith('pyproject.toml'):
with open(filepath) as f:
parser.remove_section("ipdb")
read_func(f)
else:
parser.remove_section("tool.ipdb")
read_func(ConfigFile(filepath))
return parser

Expand Down

0 comments on commit ae704b0

Please sign in to comment.