def METHOD_NAME(self, value):
    if value:
        try:
            self._extra = FERNET.encrypt(bytes(value, "utf-8")).decode()
            self.is_extra_encrypted = True
        except NameError:
            self._extra = value
            self.is_extra_encrypted = False