Raise 404 if report not found
This commit is contained in:
parent
fc32542f55
commit
edef084121
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue