<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def safe_setattr(obj, name, value):
 """Attempt to setattr but catch AttributeErrors."""

    try:
        setattr(obj, name, value)
        return True
    except AttributeError:
        return False