Closes #17154: error out gracefully on "ignore" or "condition" without argument.
This commit is contained in:
parent
5bbbc94073
commit
0079ffc092
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue