mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #1606 from ericgeldmacher/fix_log_decoding_error
Fix decoding errors not handled when trying to read service logs
This commit is contained in:
commit
c13d627302
1 changed files with 1 additions and 1 deletions
|
@ -775,7 +775,7 @@ def _tail(file, n):
|
|||
f = gzip.open(file)
|
||||
lines = f.read().splitlines()
|
||||
else:
|
||||
f = open(file)
|
||||
f = open(file, errors='replace')
|
||||
pos = 1
|
||||
lines = []
|
||||
while len(lines) < to_read and pos > 0:
|
||||
|
|
Loading…
Add table
Reference in a new issue