slack_jira/resources.py
def __get_attr_helper(self, object, field, default=None):
        """
        Helper method is needed to call hasattr first and then calling getattr
        with a default value.

        The __getattr__ method is supposed to handle a default case, but it
        seems like it is not written properly (yet) :-(
        """
        # TODO: Make PR to fix this ^ bug
        if hasattr(object, field):
            return getattr(object, field)

        return default

        Helper method is needed to call hasattr first and then calling getattr
        with a default value.

        The __getattr__ method is supposed to handle a default case, but it
        seems like it is not written properly (yet) :-(
        
Helper method is needed to call hasattr first and then calling getattr
with a default value.

The __getattr__ method is supposed to handle a default case, but it
seems like it is not written properly (yet) :-(
Helper method is needed to call hasattr first and then calling getattr with a default value . The __getattr__ method is supposed to handle a default case but it seems like it is not written properly ( yet ) : - (
def __get_attr_helper(self, object, field, default=None):
        if hasattr(object, field):
            return getattr(object, field)
        return default
def __get_attr_helper ( self , object , field , default = None ) : if hasattr ( object , field ) : return getattr ( object , field ) return default
Helper method is needed to call hasattr first and then calling getattr
with a default value.
Helper method is needed to call hasattr first and then calling getattr with a default value .
"""
        Helper method is needed to call hasattr first and then calling getattr
        with a default value.

        The __getattr__ method is supposed to handle a default case, but it
        seems like it is not written properly (yet) :-(
        """ # TODO: Make PR to fix this ^ bug
self
object
field
default