Catch absence of IOD lines

pull/59/head
Cees Bassa 2020-01-02 21:32:18 +01:00
parent 48579092ee
commit f9e4c741e4
1 changed files with 7 additions and 5 deletions

View File

@ -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()