fix for wrong file name in dumps folder

This commit is contained in:
ShrLnm 2022-06-05 05:31:13 +00:00
parent ca9bdb6a5d
commit d444fae8fc

View File

@ -491,11 +491,11 @@ class DDTScreen (tk.Frame):
if self.decu.ecufname.split ('/')[-1][:-4] in f:
try:
uda = f.split ('_')[0]
fda = datetime.datetime.fromtimestamp (int (uda)).strftime ('%Y/%m/%d %H:%M:%S')
flist.append (fda + '\t#\t' + f)
except:
tkMessageBox.showinfo ("Wrong dump file", "No appropriate dump file in ./dumps folder")
tkMessageBox.showinfo ("Wrong dump file", "Wrong file name " + f + " in ./dumps folder")
return ""
fda = datetime.datetime.fromtimestamp (int (uda)).strftime ('%Y/%m/%d %H:%M:%S')
flist.append (fda + '\t#\t' + f)
if len (flist) == 0:
tkMessageBox.showinfo ("Wrong dump file", "No appropriate dump file in ./dumps folder")
return ""