Skip to content

Commit

Permalink
try to fix error report in fixed #115
Browse files Browse the repository at this point in the history
  • Loading branch information
LoRexxar committed Dec 1, 2020
1 parent fdb5c19 commit 3519596
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions core/cast.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,7 @@ def is_controllable_param(self):
raise

except:
logger.warning("[AST] Can't get `param`, check built-in rule")
traceback.print_exc()
logger.warning("[AST] Can't get `param`, check built-in rule..error details:\n{}".format(traceback.format_exc()))
return False, -1, self.data, []

if _is_co == 3:
Expand Down
2 changes: 1 addition & 1 deletion core/core_engine/php/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,7 @@ def deep_parameters_back(param, back_node, function_params, count, file_path, li
isback=True)

if is_co == -1:
padding[param.name] = ccp
padding[get_node_name(param)] = ccp

# 拼接路径
filename = get_filename(node, file_path)
Expand Down

0 comments on commit 3519596

Please sign in to comment.