mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
config: self.app may not be defined
This commit is contained in:
parent
403c36d984
commit
4e5632a24b
1 changed files with 2 additions and 1 deletions
|
@ -423,7 +423,8 @@ class ConfigPanel:
|
|||
if services_to_reload:
|
||||
logger.info("Reloading services...")
|
||||
for service in services_to_reload:
|
||||
service = service.replace("__APP__", self.app)
|
||||
if hasattr(self, "app"):
|
||||
service = service.replace("__APP__", self.app)
|
||||
service_reload_or_restart(service)
|
||||
|
||||
def _iterate(self, trigger=["option"]):
|
||||
|
|
Loading…
Add table
Reference in a new issue