X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=Robots%2Fbkmk_rforking.py;h=7b458df0ca8767cba61c3c1b76a3d8d5579b03f3;hb=011586eca56d3bde3fef2087579e6cbc0682f5b4;hp=07f28bcf123dc31576049c960e04431ff4964438;hpb=22edd674b39699fedc032a08855bbf4666547c6c;p=bookmarks_db.git diff --git a/Robots/bkmk_rforking.py b/Robots/bkmk_rforking.py index 07f28bc..7b458df 100644 --- a/Robots/bkmk_rforking.py +++ b/Robots/bkmk_rforking.py @@ -24,7 +24,7 @@ from bkmk_objects import Robot # This is to catch 'close failed: [Errno 9] Bad file descriptor' message # from os.close() in Subprocess.die() and errors from the subprocess. -sys.stderr = open("err.log", 'a') +sys.stderr = open("err.log", 'at') check_subp = None subp_pipe = None @@ -86,7 +86,7 @@ class robot_forking(Robot): "error", "no_error", "moved", "size", "md5", "real_title", "last_tested", "last_modified", "test_time", - "icon", "icon_href", + "icon", "icon_href", "charset", ): if hasattr(new_b, attr): setattr(bookmark, attr, getattr(new_b, attr)) @@ -100,7 +100,7 @@ class robot_forking(Robot): error = check_subp.readPendingErrLine() if not error: break - sys.stderr.write("(subp) " + error) + sys.stderr.write("(subp) %s" % error) sys.stderr.flush() except KeyboardInterrupt: