diff --git a/ynca/subunit.py b/ynca/subunit.py index ef0f253..b3507a8 100644 --- a/ynca/subunit.py +++ b/ynca/subunit.py @@ -56,7 +56,7 @@ def __init__(self, connection: YncaConnection) -> None: # otherwise the YncaFunction descriptors get/set functions would trigger. # Sort the list to have a deterministic/understandable order for easier testing for attribute_name in sorted(dir(self.__class__)): - attribute = getattr(self.__class__, attribute_name) + attribute = getattr(self.__class__, attribute_name, None) if isinstance(attribute, FunctionMixinBase): self.function_handlers[attribute.name] = YncaFunctionHandler(attribute)