returning None in js
This commit is contained in:
parent
12dc5b82cc
commit
d6432ea58f
1 changed files with 5 additions and 3 deletions
|
|
@ -344,7 +344,9 @@ def get_python_traceback(output: str) -> str:
|
|||
|
||||
def get_javascript_traceback(output: str) -> str:
|
||||
lines = output.splitlines("\n")
|
||||
if len(lines) == 0:
|
||||
if len(lines) > 0:
|
||||
first_line = lines[0].split(": ")
|
||||
if len(lines) > 1 and len(first_line) > 0 and len(first_line[0]) > 0 and "at" in lines[1].lstrip():
|
||||
return output
|
||||
if len(lines) > 1 and len(first_line) > 0 and len(first_line[0]) > 0 and "at" in lines[1].lstrip():
|
||||
return output
|
||||
else:
|
||||
return None
|
||||
Loading…
Add table
Reference in a new issue