Fix to Error catching

This commit is contained in:
Sean-M 2013-02-21 15:02:52 -05:00
parent d3fe84d40c
commit f52c0653d9

View File

@ -1601,19 +1601,18 @@ def execute_test():
print("Here here here here here here here here here")
print(case.common_log)
print(failedbool)
logres = search_common_log("ERROR")
logres = search_common_log("TskCoreException")
print(logres)
if (len(logres)>0):
failedbool = True
global errorem
errorem += "There were Autopsy errors.\n"
attachl.append(case.common_log)
for lm in logres:
errorem += lm
print(errorem)
attachl.append(case.common_log)
if failedbool:
ainsert = html.name
attachl.insert(0, ainsert)
attachl.insert(0, html.name)
send_email()
html.close()
#email_send(HTML_email, None)