Raise 404 if report not found

This commit is contained in:
Lance Edgar 2022-03-29 17:19:23 -05:00
parent fc32542f55
commit edef084121

View file

@ -387,6 +387,8 @@ class ReportOutputView(ExportMasterView):
use_buefy = self.get_use_buefy() use_buefy = self.get_use_buefy()
type_key = self.request.matchdict['type_key'] type_key = self.request.matchdict['type_key']
report = self.report_handler.get_report(type_key) report = self.report_handler.get_report(type_key)
if not report:
return self.notfound()
report_params = report.make_params(Session()) report_params = report.make_params(Session())
route_prefix = self.get_route_prefix() route_prefix = self.get_route_prefix()