From b1cb7123a389d723feaf789bb5385d2438ec54f0 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Thu, 11 Jul 2019 20:37:03 +0200 Subject: [PATCH] Fix for #959 --- cps/helper.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cps/helper.py b/cps/helper.py index 114eeccd..1b233cad 100644 --- a/cps/helper.py +++ b/cps/helper.py @@ -605,7 +605,10 @@ def render_task_status(tasklist): if 'starttime' not in task: task['starttime'] = "" - task['runtime'] = format_runtime(task['formRuntime']) + if 'formRuntime' not in task: + task['runtime'] = "" + else: + task['runtime'] = format_runtime(task['formRuntime']) # localize the task status if isinstance( task['stat'], int ):