mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Again here, list.remove(foo) fails if foo ain't in list :[
This commit is contained in:
parent
c346f5f1df
commit
43facfd5b5
1 changed files with 2 additions and 1 deletions
|
@ -418,7 +418,8 @@ def service_log(name, number=50):
|
||||||
# Legacy stuff related to --log_type where we'll typically have the service
|
# Legacy stuff related to --log_type where we'll typically have the service
|
||||||
# name in the log list but it's not an actual logfile. Nowadays journalctl
|
# name in the log list but it's not an actual logfile. Nowadays journalctl
|
||||||
# is automatically fetch as well as regular log files.
|
# is automatically fetch as well as regular log files.
|
||||||
log_list.remove(name)
|
if name in log_list:
|
||||||
|
log_list.remove(name)
|
||||||
|
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue