check_attributes#

check_attributes(self, *attrs)[source]#

Check that specified attributes are not None.

Parameters:
  • self (Any) – The object instance to check attributes on.

  • *attrs (str) – Variable number of attribute names to check.

Raises:

AttributeError – If any of the specified attributes are None.

Return type:

None