From ab1ff3331b3d9c42ec4b8920fedac5834f7e10aa Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Tue, 22 Dec 2020 01:38:41 -0800 Subject: [PATCH] misc: synology fix Accept user-contributed fix. Not testable. Close #690. --- misc/synology.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/misc/synology.py b/misc/synology.py index 995ca8e9..6e294ce1 100644 --- a/misc/synology.py +++ b/misc/synology.py @@ -79,8 +79,10 @@ for dir_name, subdirs, file_list in os.walk(start_dir): stdout=output_file, stderr=subprocess.PIPE, check=False, + text=True, + errors='ignore', ) - logging.info(proc.stderr.read()) + logging.info(proc.stderr) os.chmod(full_path_ocr, 0o664) os.chmod(full_path, 0o664) full_path_ocr_archive = sys.argv[2]