diff --git a/pythonExamples/reportmodule.py b/pythonExamples/reportmodule.py index 366d28f6a69027507a806a920a8bfca5af5897bd..759602bdb6ee2d20c2c150c21a2e0ad9b808a576 100755 --- a/pythonExamples/reportmodule.py +++ b/pythonExamples/reportmodule.py @@ -39,6 +39,7 @@ from org.sleuthkit.autopsy.casemodule import Case from org.sleuthkit.autopsy.coreutils import Logger from org.sleuthkit.autopsy.report import GeneralReportModuleAdapter +from org.sleuthkit.autopsy.report.ReportProgressPanel import ReportStatus # TODO: Rename the class to something more specific @@ -103,4 +104,6 @@ def generateReport(self, baseReportDir, progressBar): Case.getCurrentCase().addReport(fileName, self.moduleName, "File Count Report"); progressBar.increment() - progressBar.complete() + + # Call this with ERROR if report was not generated + progressBar.complete(ReportStatus.COMPLETE) \ No newline at end of file