mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
Stupid hack for pepettes_ynh which has a epic weird bug with unicode stuff during tests... lynx+euro symbol idk
This commit is contained in:
parent
444de3ae11
commit
cd89ea729b
1 changed files with 6 additions and 1 deletions
7
run.py
7
run.py
|
@ -403,7 +403,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()
|
||||
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