Skip to content

Commit

Permalink
Remove remaining tool.ipdb code check
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrebarbaruiva authored and gotcha committed Mar 8, 2021
1 parent 1056bd1 commit e712693
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ipdb/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ def set_trace(frame=None, context=None, cond=True):
def get_context_from_config():
try:
parser = get_config()
return parser.getint("tool.ipdb", "context", fallback=parser.getint("ipdb", "context"))
return parser.getint("ipdb", "context")
except (configparser.NoSectionError, configparser.NoOptionError):
return 3
except ValueError:
value = parser.get("tool.ipdb", "context", fallback=parser.get("ipdb", "context"))
value = parser.get("ipdb", "context")
raise ValueError(
"In %s, context value [%s] cannot be converted into an integer."
% (parser.filepath, value)
Expand Down

0 comments on commit e712693

Please sign in to comment.