mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Fix to Error catching
This commit is contained in:
parent
d3fe84d40c
commit
f52c0653d9
@ -1601,19 +1601,18 @@ def execute_test():
|
|||||||
print("Here here here here here here here here here")
|
print("Here here here here here here here here here")
|
||||||
print(case.common_log)
|
print(case.common_log)
|
||||||
print(failedbool)
|
print(failedbool)
|
||||||
logres = search_common_log("ERROR")
|
logres = search_common_log("TskCoreException")
|
||||||
print(logres)
|
print(logres)
|
||||||
if (len(logres)>0):
|
if (len(logres)>0):
|
||||||
failedbool = True
|
failedbool = True
|
||||||
global errorem
|
global errorem
|
||||||
errorem += "There were Autopsy errors.\n"
|
errorem += "There were Autopsy errors.\n"
|
||||||
|
attachl.append(case.common_log)
|
||||||
for lm in logres:
|
for lm in logres:
|
||||||
errorem += lm
|
errorem += lm
|
||||||
print(errorem)
|
print(errorem)
|
||||||
attachl.append(case.common_log)
|
|
||||||
if failedbool:
|
if failedbool:
|
||||||
ainsert = html.name
|
attachl.insert(0, html.name)
|
||||||
attachl.insert(0, ainsert)
|
|
||||||
send_email()
|
send_email()
|
||||||
html.close()
|
html.close()
|
||||||
#email_send(HTML_email, None)
|
#email_send(HTML_email, None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user