Add missing "return" statements in exception handler.

(backport from rev. 54268)
This commit is contained in:
Georg Brandl 2007-03-11 08:28:50 +00:00
parent 69fe9e478f
commit d28d9c8221
1 changed files with 2 additions and 0 deletions

View File

@ -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: