Skip to content

Commit

Permalink
Minor cleaning in cli_utils
Browse files Browse the repository at this point in the history
  • Loading branch information
ndevenish authored and dagewa committed Apr 14, 2021
1 parent 3954687 commit ba43a76
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/dui/cli_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,13 +579,10 @@ def __call__(self, lst_cmd_to_run=None, ref_to_class=None):
self.my_pid = my_process.pid
for line in iter(my_process.stdout.readline, b""):
single_line = line[0 : len(line) - 1]
# logger.info(f">>: {single_line}")
self.tmp_std_all.append(single_line)
try:
ref_to_class.emit_print_signal(single_line)

except AttributeError:
logger.info("AttributeError: %s", single_line)
if ref_to_class:
ref_to_class.emit_print_signal(single_line)

my_process.wait()
my_process.stdout.close()
Expand Down

0 comments on commit ba43a76

Please sign in to comment.