Bug fix
authorJakob Cornell <jakob+gpg@jcornell.net>
Mon, 13 Jan 2020 04:13:29 +0000 (22:13 -0600)
committerJakob Cornell <jakob+gpg@jcornell.net>
Mon, 13 Jan 2020 04:13:29 +0000 (22:13 -0600)
main.py

diff --git a/main.py b/main.py
index 14e9c26686909e953def5c13d518ff5e846547a6..a8cf3cfaeb9dc09bbf650ea7102a00490aeb1969 100644 (file)
--- a/main.py
+++ b/main.py
@@ -335,7 +335,8 @@ class MainView(View):
                        head.insert(5, "Score (Comp)")
                        def with_composite(record):
                                new = list(record)
-                               new.insert(5, round(record.overall_score(), 1))
+                               overall = record.overall_score()
+                               new.insert(5, None if overall is None else round(overall, 1))
                                return new
                        rows = map(with_composite, self.controller.data[name])
                        rows = [