mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-11 17:27:42 +08:00
Merge branch 'development' into morpheus
This commit is contained in:
commit
7b6731ea53
2 changed files with 3 additions and 3 deletions
|
@ -51,9 +51,9 @@ def start_bazarr():
|
|||
break
|
||||
if PY3:
|
||||
sys.stdout.buffer.write(line)
|
||||
sys.stdout.flush()
|
||||
else:
|
||||
sys.stdout.write(line)
|
||||
sys.stdout.flush()
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
|
||||
|
|
|
@ -179,9 +179,9 @@ class VideoFileParser:
|
|||
if PY3:
|
||||
command = [parser] + commandArgs + [inputFile]
|
||||
completedProcess = subprocess.run(
|
||||
command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding="utf-8"
|
||||
command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True
|
||||
)
|
||||
if completedProcess.returncode != 0:
|
||||
if completedProcess.returncode:
|
||||
raise IOError(
|
||||
"Error occurred during execution - " + completedProcess.stderr
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue