From 2297b389b9bc8c5326ab3eb6d909a546cc41a84b Mon Sep 17 00:00:00 2001 From: tianxiu2b2t Date: Sun, 17 Nov 2024 22:59:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E6=B2=A1=E6=9C=89=E6=8F=90=E4=BE=9B=20hash?= =?UTF-8?q?=20=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VERSION | 2 +- core/cluster.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index e46454b..489200c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.0.8 \ No newline at end of file +3.0.9 \ No newline at end of file diff --git a/core/cluster.py b/core/cluster.py index a1a42bb..ca88abf 100644 --- a/core/cluster.py +++ b/core/cluster.py @@ -472,7 +472,7 @@ async def report(self, file: File, error: Exception, resp: Optional[aiohttp.Clie responses.append(URLResponse(str(r.real_url), r.status)) responses.append(URLResponse(str(resp.real_url), resp.status)) host = resp.host - hash = msg[0] if len(msg) > 0 and type == "file" else None + hash = msg[0] if len(msg) > 0 and type == "hash" else None logger.terror(f"clusters.error.downloading", type=type, error=str(error), file_hash=file.hash, file_size=units.format_bytes(file.size), host=host, file_path=file.path, hash=hash, responses="\n".join(("", *(str(r) for r in responses)))) self.failed_hash_urls[file.hash].failed += 1 self.failed_hash_urls[file.hash].urls.add(tuple(responses))