def update(self, data_set: DownloadableContent): data_set.status = self.status data_set.type = self.type if not self.status.success: data_set.message = self.message data_set.dst = None
def _set_failed(content: DownloadableContent, message: str): content.message = message content.status = FetcherStatus.FAILED content.dst = None