Skip to content

Commit

Permalink
fix: 修复报错类型没有提供 hash 问题
Browse files Browse the repository at this point in the history
  • Loading branch information
tianxiu2b2t committed Nov 17, 2024
1 parent 0a420ee commit 2297b38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.8
3.0.9
2 changes: 1 addition & 1 deletion core/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 2297b38

Please sign in to comment.