mirror of
https://github.com/elisspace/autopsy.git
synced 2026-10-02 23:39:50 +00:00
Added more specific exception handling to python example
This commit is contained in:
@@ -134,6 +134,8 @@ class RunExeIngestModule(DataSourceIngestModule):
|
||||
reportHandle = open(reportPath, 'w')
|
||||
|
||||
# Run the EXE, saving output to the report
|
||||
# NOTE: we should really be checking for if the module has been
|
||||
# cancelled and then killing the process.
|
||||
self.log(Level.INFO, "Running program on data source")
|
||||
subprocess.Popen([self.path_to_exe, imagePaths[0]], stdout=reportHandle).communicate()[0]
|
||||
reportHandle.close()
|
||||
@@ -141,4 +143,4 @@ class RunExeIngestModule(DataSourceIngestModule):
|
||||
# Add the report to the case, so it shows up in the tree
|
||||
Case.getCurrentCase().addReport(reportPath, "Run EXE", "img_stat output")
|
||||
|
||||
return IngestModule.ProcessResult.OK
|
||||
return IngestModule.ProcessResult.OK
|
||||
|
||||
Reference in New Issue
Block a user