summaryrefslogtreecommitdiffstats
path: root/Lib/pdb.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-xLib/pdb.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py
index b4a19e4..80cba9d 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -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: