Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we add more detailed error handling, even if it's just

expect Exception:

would be better

if not arg:
self.error("Missing argument to command!")
raise
self._error_exc()
raise

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Better error for missing arguments in :mod:`pdb` commands.
Loading