X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=1756f58fa2d27132a3675a95716ab4404cf9a898;hb=1655d67a017e5b572ca4669e658f8f9a6a7cbcc8;hp=4744f6a2f214dd7cbf67aee9a5b4cae54c604a7a;hpb=5d965c34b35048f8a8fab0a7a11f2943d833952d;p=dak.git diff --git a/daklib/utils.py b/daklib/utils.py index 4744f6a2..1756f58f 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -1548,12 +1548,12 @@ 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) """ - + line = [] try: f = open(file) lines = f.readlines() - except IOerror, e: + except IOError, e: print "Warning: Couldn't open %s; don't know about WNPP bugs, so won't close any." % file lines = [] wnpp = {} @@ -1571,4 +1571,3 @@ def parse_wnpp_bug_file(file = "/srv/ftp-master.debian.org/scripts/masterfiles/w bugs.append(bug_no) wnpp[source] = bugs return wnpp -