X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=tools%2Fqueue_rss.py;h=fc1ad3deb0f1c57d7bc02d4db6b6b375f474a807;hb=d1ba61d1cc6c2fc80d4d7661d58aea4c580690b0;hp=4e8c7ca25e8282497c0dc6eb99e8f6864cd006ab;hpb=8da566048a8566624bb289dee13e05adb7688903;p=dak.git diff --git a/tools/queue_rss.py b/tools/queue_rss.py index 4e8c7ca2..fc1ad3de 100755 --- a/tools/queue_rss.py +++ b/tools/queue_rss.py @@ -103,7 +103,7 @@ def parse_leave_reason(fname): try: f = open(fname) - except IOError, e: + except IOError as e: sys.stderr.write("Can't open %s: %s\n" % (fname, e)) return {} @@ -210,7 +210,7 @@ if __name__ == "__main__": try: status.feed_in.write_xml(file(feed_in_file, "w+"), "utf-8") status.feed_out.write_xml(file(feed_out_file, "w+"), "utf-8") - except IOError, why: + except IOError as why: sys.stderr.write("Unable to write feeds: %s\n", why) sys.exit(1) @@ -218,7 +218,7 @@ if __name__ == "__main__": try: cPickle.dump(status, open(status_db, "w+")) - except IOError, why: + except IOError as why: sys.stderr.write("Unable to save status: %s\n", why) sys.exit(1)