change initialization
ok must be True or False. set False is better for initialization
This commit is contained in:
@@ -220,7 +220,7 @@ def list_breakpoints():
|
|||||||
"Return a list of linenumbers for current breakpoints"
|
"Return a list of linenumbers for current breakpoints"
|
||||||
|
|
||||||
breakpoints = []
|
breakpoints = []
|
||||||
ok = None
|
ok = False
|
||||||
try:
|
try:
|
||||||
filename = os.path.join(request.env['applications_parent'],
|
filename = os.path.join(request.env['applications_parent'],
|
||||||
'applications', request.vars.filename)
|
'applications', request.vars.filename)
|
||||||
@@ -235,5 +235,4 @@ def list_breakpoints():
|
|||||||
ok = True
|
ok = True
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
session.flash = str(e)
|
session.flash = str(e)
|
||||||
ok = False
|
|
||||||
return response.json({'ok': ok, 'breakpoints': breakpoints})
|
return response.json({'ok': ok, 'breakpoints': breakpoints})
|
||||||
|
|||||||
Reference in New Issue
Block a user