From 6bf6ebab1b05e02ec4bd904528b3d483463ebe73 Mon Sep 17 00:00:00 2001 From: Chase choi Date: Thu, 18 Jun 2015 16:40:59 +0900 Subject: [PATCH] change initialization ok must be True or False. set False is better for initialization --- applications/admin/controllers/debug.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/applications/admin/controllers/debug.py b/applications/admin/controllers/debug.py index 8c8522ac..7176e09c 100644 --- a/applications/admin/controllers/debug.py +++ b/applications/admin/controllers/debug.py @@ -220,7 +220,7 @@ def list_breakpoints(): "Return a list of linenumbers for current breakpoints" breakpoints = [] - ok = None + ok = False try: filename = os.path.join(request.env['applications_parent'], 'applications', request.vars.filename) @@ -235,5 +235,4 @@ def list_breakpoints(): ok = True except Exception, e: session.flash = str(e) - ok = False return response.json({'ok': ok, 'breakpoints': breakpoints})