File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ def __begin__(self):
23
23
log .error ("try to load json but get exception: '%s', request data: %s" % (e ,request .data ))
24
24
return json ({"code" :400 ,"msg" :"not json data in the request" })
25
25
26
- def apply_vars (self ):
26
+ def _apply_vars (self ):
27
27
for key in self .request_data :
28
28
if key [- 1 ]== "@" :
29
29
k = self .request_data [key ]
@@ -42,12 +42,12 @@ def get(self):
42
42
else :
43
43
rsp = self ._get_one (key )
44
44
if rsp : return rsp
45
- self .apply_vars ()
45
+ self ._apply_vars ()
46
46
except Exception as e :
47
47
err = "exception when handling 'apijson get': %s" % (e )
48
48
log .error (err )
49
49
traceback .print_exc ()
50
- return json ({"code" :400 ,"msg" :err })
50
+ return json ({"code" :400 ,"msg" :"get exception when handling 'apijson get',please check server side log" })
51
51
return json (self .rdict )
52
52
53
53
def _get_one (self ,key ):
You can’t perform that action at this time.
0 commit comments