aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2021-06-03 11:13:56 -0400
committermorpheus65535 <[email protected]>2021-06-03 11:13:56 -0400
commit11fb78fafabbb6529080cb8eecb6f1aed51ad7ec (patch)
tree22a4f2e0147ee25eb3965c5fb3dc7acd066a7562
parent8cf02e31c94a48482c48e7295d574856d2168ac0 (diff)
downloadbazarr-11fb78fafabbb6529080cb8eecb6f1aed51ad7ec.tar.gz
bazarr-11fb78fafabbb6529080cb8eecb6f1aed51ad7ec.zip
Fixed log viewer showing last line of log two times.
-rw-r--r--bazarr/api.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bazarr/api.py b/bazarr/api.py
index d8fd300d9..847d84b1e 100644
--- a/bazarr/api.py
+++ b/bazarr/api.py
@@ -536,6 +536,8 @@ class SystemLogs(Resource):
raw_lines = file.read()
lines = raw_lines.split('|\n')
for line in lines:
+ if line == '':
+ continue
raw_message = line.split('|')
raw_message_len = len(raw_message)
if raw_message_len > 3: