diff options
author | Louis Vézina <[email protected]> | 2019-12-06 22:40:40 -0500 |
---|---|---|
committer | Louis Vézina <[email protected]> | 2019-12-06 22:40:40 -0500 |
commit | 1eb174d9efbe151a59322524f596ac95d1f64dfa (patch) | |
tree | bfe98d6a6299156d100f81ed0b4ddcf6750d2443 /bazarr.py | |
parent | e6cb1b1a8fcbc078f63c1289fed41c0f42425ce3 (diff) | |
download | bazarr-1eb174d9efbe151a59322524f596ac95d1f64dfa.tar.gz bazarr-1eb174d9efbe151a59322524f596ac95d1f64dfa.zip |
Fix for restarting since Python 3.
Diffstat (limited to 'bazarr.py')
-rw-r--r-- | bazarr.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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: |