From 5bf2906c514902bad7f03a883c58ccdcae9d770d Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Fri, 12 Jun 2015 07:20:01 +0200 Subject: [PATCH] avoid error when no report is found --- expert/browser/report.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/expert/browser/report.py b/expert/browser/report.py index a24d1bd..940a89b 100755 --- a/expert/browser/report.py +++ b/expert/browser/report.py @@ -184,7 +184,8 @@ class ResultsConceptView(ConceptView): if not reports: type = self.context.conceptType reports = type.getParents([self.hasReportPredicate]) - return adapted(reports[0]) + if reports: + return adapted(reports[0]) @Lazy def reportInstance(self):