summaryrefslogtreecommitdiffhomepage
path: root/bazarr.py
diff options
context:
space:
mode:
Diffstat (limited to 'bazarr.py')
-rw-r--r--bazarr.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bazarr.py b/bazarr.py
index 3f8969c17..d55ff0150 100644
--- a/bazarr.py
+++ b/bazarr.py
@@ -45,7 +45,10 @@ def start_bazarr():
ep = sp.Popen(script, stdout=sp.PIPE, stderr=sp.STDOUT, stdin=sp.PIPE)
print("Bazarr starting...")
try:
- for line in iter(ep.stdout.readline, ''):
+ while True:
+ line = ep.stdout.readline()
+ if line == '' or not line:
+ break
if PY3:
sys.stdout.buffer.write(line)
else: