summaryrefslogtreecommitdiffstats
path: root/Lib/pdb.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-10-14 14:08:25 (GMT)
committerGeorg Brandl <georg@python.org>2013-10-14 14:08:25 (GMT)
commit979541935ab96dbd6c08f367bc2e9d11428954ba (patch)
treefaf6c997d6c9ed3e612ec2e0cba42a13e5a9c964 /Lib/pdb.py
parent01867213976adfff09938f8059ea5be6df6e2c4e (diff)
parent0079ffc0920b89e5ca3b70746c5cc91da7728ac3 (diff)
downloadcpython-979541935ab96dbd6c08f367bc2e9d11428954ba.zip
cpython-979541935ab96dbd6c08f367bc2e9d11428954ba.tar.gz
cpython-979541935ab96dbd6c08f367bc2e9d11428954ba.tar.bz2
merge with 3.3
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 143b925..2268d30 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -798,6 +798,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:
@@ -825,6 +827,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: