Skip to content

Commit 102552e

Browse files
committed
simplify lines declaration
1 parent b44dd77 commit 102552e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ export class PythonShell extends EventEmitter{
325325

326326
if (/^Traceback/.test(text)) {
327327
// traceback data is available
328-
let lines = (''+data).trim().split(newline);
328+
let lines = text.trim().split(newline);
329329
let exception = lines.pop();
330330
error = new PythonShellError(exception);
331331
error.traceback = data;

0 commit comments

Comments
 (0)