From b49a3eaf3a81f2812d88e2e8e22f81c1e1a11fcc Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Fri, 10 Jul 2020 21:46:23 -0400 Subject: [PATCH] Check for a non-standard property on request --- src/allmydata/web/check_results.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/allmydata/web/check_results.py b/src/allmydata/web/check_results.py index c9c429622..a29ddb188 100644 --- a/src/allmydata/web/check_results.py +++ b/src/allmydata/web/check_results.py @@ -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)