X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=daklib%2Futils.py;h=4744f6a2f214dd7cbf67aee9a5b4cae54c604a7a;hb=5d965c34b35048f8a8fab0a7a11f2943d833952d;hp=542ede51c8cab50c9b56fd0b09c7e15f3b5daabc;hpb=9b9e1c34bfd5b9527c71fdc8db6cb3024482c0c9;p=dak.git diff --git a/daklib/utils.py b/daklib/utils.py index 542ede51..4744f6a2 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -1548,7 +1548,14 @@ def parse_wnpp_bug_file(file = "/srv/ftp-master.debian.org/scripts/masterfiles/w returns a dict associating source package name with a list of open wnpp bugs (Yes, there might be more than one) """ - lines = open(file).readlines() + + line = [] + try: + f = open(file) + lines = f.readlines() + except IOerror, e: + print "Warning: Couldn't open %s; don't know about WNPP bugs, so won't close any." % file + lines = [] wnpp = {} for line in lines: