Skip to content

Commit 2297b38

Browse files
committed
fix: 修复报错类型没有提供 hash 问题
1 parent 0a420ee commit 2297b38

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0.8
1+
3.0.9

core/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ async def report(self, file: File, error: Exception, resp: Optional[aiohttp.Clie
472472
responses.append(URLResponse(str(r.real_url), r.status))
473473
responses.append(URLResponse(str(resp.real_url), resp.status))
474474
host = resp.host
475-
hash = msg[0] if len(msg) > 0 and type == "file" else None
475+
hash = msg[0] if len(msg) > 0 and type == "hash" else None
476476
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))))
477477
self.failed_hash_urls[file.hash].failed += 1
478478
self.failed_hash_urls[file.hash].urls.add(tuple(responses))

0 commit comments

Comments
 (0)