From e997720d3bf48b52232d22422eeb2a84c3cab373 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Thu, 31 Oct 2013 11:31:21 -0700 Subject: [PATCH] Fix undefined variable in read_blocks. --- britney.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/britney.py b/britney.py index 027854c..08109bd 100755 --- a/britney.py +++ b/britney.py @@ -912,8 +912,8 @@ class Britney(object): l = line.split() if len(l) != 3: continue try: - dates.setdefault(l[0], []) - dates[l[0]].append((l[1], int(l[2]))) + blocks.setdefault(l[0], []) + blocks[l[0]].append((l[1], int(l[2]))) except ValueError: self.__log("Blocks, unable to parse \"%s\"" % line, type="E") return blocks