Skip to content

Commit 6de3f94

Browse files
LorenzoLorenzo
authored andcommitted
fixed node.execute 'UnboundLocalError: local variable 'line' referenced before assignment'
1 parent 8c4b643 commit 6de3f94

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

node/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def execute(self, command, command_args, is_from_bin=False) :
117117
if len(lines_error) > 0 :
118118
no_error = False
119119

120-
lines = lines_output + ( b"\n" if type(line) is bytes else "\n" ) + lines_error
120+
lines = lines_output + ( b"\n" if type(lines_output) is bytes else "\n" ) + lines_error
121121

122122
p.terminate()
123123

0 commit comments

Comments
 (0)