]> granicus.if.org Git - python/commitdiff
Add missing "return" statements in exception handler.
authorGeorg Brandl <georg@python.org>
Sun, 11 Mar 2007 08:28:50 +0000 (08:28 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 11 Mar 2007 08:28:50 +0000 (08:28 +0000)
 (backport from rev. 54268)

Lib/pdb.py

index f7fce26a23006e8ac8083f06276c9f190abb3d96..f08241ffbc353c41f552dd237282d357ea277a47 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: