def _attr_get_(obj, attr):
    '''Returns an attribute's value, or None (no error) if undefined.
       Analagous to .get() for dictionaries.  Useful when checking for
       value of options that may not have been defined on a given
       method.'''
    try:
        return getattr(obj, attr)
    except __HOLE__:
        return None
dataset/ETHPy150Open jookies/jasmin/jasmin/protocols/cli/options.py/_attr_get_