Commit b2783188 authored by Georg Brandl's avatar Georg Brandl

Add missing "return" statements in exception handler.

parent ae04106a
...@@ -480,6 +480,7 @@ class Pdb(bdb.Bdb, cmd.Cmd): ...@@ -480,6 +480,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
# something went wrong # something went wrong
print >>self.stdout, \ print >>self.stdout, \
'Breakpoint index %r is not a number' % args[0] 'Breakpoint index %r is not a number' % args[0]
return
try: try:
cond = args[1] cond = args[1]
except: except:
...@@ -500,6 +501,7 @@ class Pdb(bdb.Bdb, cmd.Cmd): ...@@ -500,6 +501,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
# something went wrong # something went wrong
print >>self.stdout, \ print >>self.stdout, \
'Breakpoint index %r is not a number' % args[0] 'Breakpoint index %r is not a number' % args[0]
return
try: try:
count = int(args[1].strip()) count = int(args[1].strip())
except: except:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment