mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] empty services.yml file
This commit is contained in:
parent
108a3ca498
commit
85f1802ec9
2 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ with open('services.yml') as f:
|
|||
new_services = yaml.load(f)
|
||||
|
||||
with open('/etc/yunohost/services.yml') as f:
|
||||
services = yaml.load(f)
|
||||
services = yaml.load(f) or {}
|
||||
|
||||
updated = False
|
||||
|
||||
|
|
|
@ -586,7 +586,7 @@ def _get_services():
|
|||
"""
|
||||
try:
|
||||
with open('/etc/yunohost/services.yml', 'r') as f:
|
||||
services = yaml.load(f)
|
||||
services = yaml.load(f) or {}
|
||||
except:
|
||||
return {}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue