- status.feed_in.write_xml(file(feed_in_file, "w+"), "utf-8")
- status.feed_out.write_xml(file(feed_out_file, "w+"), "utf-8")
+ 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:
+ sys.stderr.write("Unable to write feeds: %s\n", why)
+ sys.exit(1)