diff options
author | Georg Brandl <georg@python.org> | 2013-10-14 14:08:15 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2013-10-14 14:08:15 (GMT) |
commit | 0079ffc0920b89e5ca3b70746c5cc91da7728ac3 (patch) | |
tree | 25bca718c7ad290dc6dfd4db01f6f6de9efedb9b /Lib/pdb.py | |
parent | 5bbbc94073ead2c12c0980f024b0af4a1bca9642 (diff) | |
download | cpython-0079ffc0920b89e5ca3b70746c5cc91da7728ac3.zip cpython-0079ffc0920b89e5ca3b70746c5cc91da7728ac3.tar.gz cpython-0079ffc0920b89e5ca3b70746c5cc91da7728ac3.tar.bz2 |
Closes #17154: error out gracefully on "ignore" or "condition" without argument.
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-x | Lib/pdb.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -805,6 +805,8 @@ class Pdb(bdb.Bdb, cmd.Cmd): cond = None try: bp = self.get_bpbynumber(args[0].strip()) + except IndexError: + self.error('Breakpoint number expected') except ValueError as err: self.error(err) else: @@ -832,6 +834,8 @@ class Pdb(bdb.Bdb, cmd.Cmd): count = 0 try: bp = self.get_bpbynumber(args[0].strip()) + except IndexError: + self.error('Breakpoint number expected') except ValueError as err: self.error(err) else: |