mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
Merge branch 'testing' into upgrade-to-sanic-21
This commit is contained in:
commit
bab653dbd5
1 changed files with 6 additions and 1 deletions
7
run.py
7
run.py
|
@ -409,7 +409,12 @@ async def run_job(worker, job):
|
|||
while not command.stdout.at_eof():
|
||||
data = await command.stdout.readline()
|
||||
|
||||
job.log += data.decode()
|
||||
try:
|
||||
job.log += data.decode('utf-8', 'replace')
|
||||
except UnicodeDecodeError as e:
|
||||
job.log += "Uhoh ?! UnicodeDecodeError in yunorunner !?"
|
||||
job.log += str(e)
|
||||
|
||||
# XXX seems to be okay performance wise but that's probably going to be
|
||||
# a bottleneck at some point :/
|
||||
# theoritically jobs are going to have slow output
|
||||
|
|
Loading…
Add table
Reference in a new issue