<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _update_parent_attachments(self):
 """ Tries to update the parent property 'has_attachments' """

        try:
            self._parent.has_attachments = bool(len(self.__attachments))
        except AttributeError:
            pass