mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-18 05:51:32 +00:00
Fix undefined variable in read_blocks.
This commit is contained in:
parent
d2b20a8d03
commit
e997720d3b
@ -912,8 +912,8 @@ class Britney(object):
|
|||||||
l = line.split()
|
l = line.split()
|
||||||
if len(l) != 3: continue
|
if len(l) != 3: continue
|
||||||
try:
|
try:
|
||||||
dates.setdefault(l[0], [])
|
blocks.setdefault(l[0], [])
|
||||||
dates[l[0]].append((l[1], int(l[2])))
|
blocks[l[0]].append((l[1], int(l[2])))
|
||||||
except ValueError:
|
except ValueError:
|
||||||
self.__log("Blocks, unable to parse \"%s\"" % line, type="E")
|
self.__log("Blocks, unable to parse \"%s\"" % line, type="E")
|
||||||
return blocks
|
return blocks
|
||||||
|
Loading…
x
Reference in New Issue
Block a user