Merge pull request #18 from YunoHost/yalh76-patch-1

Solve error during pepette_ynh
This commit is contained in:
yalh76 2021-06-29 23:57:04 +02:00 committed by GitHub
commit fff0d391f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
run.py
View file

@ -404,7 +404,7 @@ async def run_job(worker, job):
data = await command.stdout.readline()
try:
job.log += data.decode()
job.log += data.decode('utf-8', 'replace')
except UnicodeDecodeError as e:
job.log += "Uhoh ?! UnicodeDecodeError in yunorunner !?"
job.log += str(e)