mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-12-26 15:51:19 +01:00
fixes recursion when defining task without autostart
This commit is contained in:
@@ -17,7 +17,9 @@ def autostart_service_tasks(
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
for attr in dir(service):
|
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
|
continue
|
||||||
|
|
||||||
val = getattr(service, attr)
|
val = getattr(service, attr)
|
||||||
|
|||||||
Reference in New Issue
Block a user