Commit 547a9264 authored by Betoule Marc's avatar Betoule Marc
Browse files

Correct a bug in web when parsing a filename without extension

parent a9aed478
......@@ -619,11 +619,14 @@ class Web:
datlist = []
loglist = []
for filename in lstfile:
if (filename.split(".")[1] in ["png", "jpg", "eps", "pdf"]):
imglist.append(filename)
elif (filename.split(".")[1] in ["meta", "log", "err"]):
loglist.append(filename)
else:
try:
if (filename.split(".")[1] in ["png", "jpg", "eps", "pdf"]):
imglist.append(filename)
elif (filename.split(".")[1] in ["meta", "log", "err"]):
loglist.append(filename)
else:
datlist.append(filename)
except IndexError:
datlist.append(filename)
biglist = [sorted(loglist), sorted(datlist), sorted(imglist)]
name = ['LOGS', 'DATA', 'FIGURES']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment