Check for a non-standard property on request

This commit is contained in:
Sajith Sasidharan 2020-07-10 21:46:23 -04:00
parent 267b89ae5b
commit b49a3eaf3a

View File

@ -583,7 +583,9 @@ class DeepCheckResultsRendererElement(Element, ResultsBase, ReloadMixin):
@renderer
def runtime(self, req, tag):
runtime = time.time() - req.processing_started_timestamp
runtime = 'unknown'
if hasattr(req, 'processing_started_timestamp'):
runtime = time.time() - req.processing_started_timestamp
return tag("runtime: %s seconds" % runtime)