aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'resources/tools/presentation/utils.py')
-rw-r--r--resources/tools/presentation/utils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/resources/tools/presentation/utils.py b/resources/tools/presentation/utils.py
index 2fbf70cadc..0e72a06343 100644
--- a/resources/tools/presentation/utils.py
+++ b/resources/tools/presentation/utils.py
@@ -36,7 +36,10 @@ def mean(items):
:rtype: float
"""
- return float(sum(items)) / len(items)
+ if len(items):
+ return float(sum(items)) / len(items)
+ else:
+ return None
def stdev(items):