Catch absence of IOD lines
parent
48579092ee
commit
f9e4c741e4
12
process.py
12
process.py
|
@ -217,11 +217,13 @@ if __name__ == "__main__":
|
|||
|
||||
fstat.write(fileoutput)
|
||||
print(screenoutput)
|
||||
for [outfilename, iod_line, color] in screenoutput_idents:
|
||||
print(colored(iod_line,color))
|
||||
# Write iodline
|
||||
with open(outfilename, "a") as fp:
|
||||
fp.write("%s\n" % iod_line)
|
||||
|
||||
if screenoutput_idents is not None:
|
||||
for [outfilename, iod_line, color] in screenoutput_idents:
|
||||
print(colored(iod_line,color))
|
||||
# Write iodline
|
||||
with open(outfilename, "a") as fp:
|
||||
fp.write("%s\n" % iod_line)
|
||||
|
||||
p.close()
|
||||
p.join()
|
||||
|
|
Loading…
Reference in New Issue