mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-25 01:02:19 +00:00
Fixed issue with log entries without exception stack
This commit is contained in:
parent
54eb0fc174
commit
ac8eb62de0
1 changed files with 3 additions and 2 deletions
|
@ -521,6 +521,7 @@ class SystemLogs(Resource):
|
||||||
log["timestamp"] = lin[0]
|
log["timestamp"] = lin[0]
|
||||||
log["type"] = lin[1].rstrip()
|
log["type"] = lin[1].rstrip()
|
||||||
log["message"] = lin[3]
|
log["message"] = lin[3]
|
||||||
|
if len(lin) > 4:
|
||||||
if lin[4] != '\n':
|
if lin[4] != '\n':
|
||||||
log['exception'] = lin[4].strip('\'').replace(' ', '\u2003\u2003')
|
log['exception'] = lin[4].strip('\'').replace(' ', '\u2003\u2003')
|
||||||
logs.append(log)
|
logs.append(log)
|
||||||
|
|
Loading…
Reference in a new issue