fixes recursion when defining task without autostart

This commit is contained in:
Mose Müller 2024-09-21 08:32:54 +02:00
parent d7c5c2cd6e
commit 488415436c

View File

@ -17,7 +17,9 @@ def autostart_service_tasks(
"""
for attr in dir(service):
if is_property_attribute(service, attr): # prevent eval of property attrs
if is_property_attribute(service, attr) or attr in {
"__dict__",
}: # prevent eval of property attrs and recursion
continue
val = getattr(service, attr)