Skip to content

Commit

Permalink
Don't fail on non-readable attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdwetering committed Aug 5, 2024
1 parent b02df03 commit c95afc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ynca/subunit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c95afc4

Please sign in to comment.