]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add missing "return" statements in exception handler.
authorGeorg Brandl <georg@python.org>
Sun, 11 Mar 2007 08:28:46 +0000 (08:28 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 11 Mar 2007 08:28:46 +0000 (08:28 +0000)
Lib/pdb.py

index 865b5b54078314b94619e28f54769cb8b3409ddb..f56941e8d18149de7599120cb94cf0408ab28932 100755 (executable)
@@ -480,6 +480,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
             # something went wrong
             print >>self.stdout, \
                 'Breakpoint index %r is not a number' % args[0]
+            return
         try:
             cond = args[1]
         except:
@@ -500,6 +501,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
             # something went wrong
             print >>self.stdout, \
                 'Breakpoint index %r is not a number' % args[0]
+            return
         try:
             count = int(args[1].strip())
         except: