diff options
Diffstat (limited to 'BuildManager/build.py')
-rw-r--r-- | BuildManager/build.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/BuildManager/build.py b/BuildManager/build.py index fa578cf..c07126e 100644 --- a/BuildManager/build.py +++ b/BuildManager/build.py @@ -212,11 +212,14 @@ def buildpkg(pkg, stage, unpack_dir, passtrough="", show_log=0, dryrun=0): status = pop.poll() if status is not None: break - data = os.read(of, 8192).decode(sys.getfilesystemencoding()) - log.write(data) - log.flush() - if show_log: - sys.stdout.write(data) + try: + data = os.read(of, 8192).decode(sys.getfilesystemencoding()) + log.write(data) + log.flush() + if show_log: + sys.stdout.write(data) + except UnicodeDecodeError: + pass log.close() if status == 0: logger.info("succeeded!") |