Development
This commit is contained in:
parent
e4a9d5c038
commit
bf4e7175cb
4 changed files with 6 additions and 6 deletions
|
|
@ -25,7 +25,7 @@ def _ddns_log_tail():
|
|||
with open(log_path) as f:
|
||||
lines = f.readlines()
|
||||
if not lines:
|
||||
return '(log is empty)', ''
|
||||
return '(no log entries yet)', ''
|
||||
total = len(lines)
|
||||
tail = lines[-DDNS_LOG_MAX:]
|
||||
shown = len(tail)
|
||||
|
|
@ -39,7 +39,7 @@ def _ddns_log_tail():
|
|||
)
|
||||
return ''.join(tail).strip(), summary
|
||||
except FileNotFoundError:
|
||||
return '(log file not found)', ''
|
||||
return '(no log entries yet)', ''
|
||||
except Exception:
|
||||
return '(error reading log)', ''
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue