config: self.app may not be defined

This commit is contained in:
Alexandre Aubin 2021-09-17 01:35:40 +02:00
parent 403c36d984
commit 4e5632a24b

View file

@ -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"]):