Skip to content

Commit

Permalink
pythongh-126944: Better error for missing arg in pdb
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja committed Nov 18, 2024
1 parent 434b297 commit d330cb6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Lib/pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -1774,6 +1774,9 @@ def _getval(self, arg):
try:
return eval(arg, self.curframe.f_globals, self.curframe.f_locals)
except:
if not arg:
self.error("Missing arg!")
raise
self._error_exc()
raise

Expand Down

0 comments on commit d330cb6

Please sign in to comment.