mirror of https://github.com/python/cpython.git
Add missing "return" statements in exception handler.
This commit is contained in:
parent
ae04106a0e
commit
b27831887f
|
@ -480,6 +480,7 @@ def do_condition(self, arg):
|
||||||
# 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 @@ def do_ignore(self,arg):
|
||||||
# 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:
|
||||||
|
|
Loading…
Reference in New Issue