mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-03-28 11:21:11 +00:00
Don't crash if the urgencies file contains non-ascii
The live-2011-12-13 test set has random garbage in the middle. Signed-off-by: Julien Cristau <jcristau@debian.org>
This commit is contained in:
parent
e8c84e8cc7
commit
7b0138ecb7
@ -783,7 +783,7 @@ class Britney(object):
|
|||||||
urgencies = {}
|
urgencies = {}
|
||||||
filename = os.path.join(basedir, "Urgency")
|
filename = os.path.join(basedir, "Urgency")
|
||||||
self.__log("Loading upload urgencies from %s" % filename)
|
self.__log("Loading upload urgencies from %s" % filename)
|
||||||
for line in open(filename):
|
for line in open(filename, errors='surrogateescape'):
|
||||||
l = line.split()
|
l = line.split()
|
||||||
if len(l) != 3: continue
|
if len(l) != 3: continue
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user