Skip to content

Commit

Permalink
Correct RedFetcher's __repr__
Browse files Browse the repository at this point in the history
  • Loading branch information
mnot committed Nov 5, 2023
1 parent a7347d4 commit 9250f0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions redbot/resource/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ def __getstate__(self) -> Dict[str, Any]:

def __repr__(self) -> str:
out = [self.__class__.__name__]
if self.request.uri:
out.append(f"{self.request.uri}")
if hasattr(self.request, "uri") and self.request.uri:
out.append(self.request.uri)
if self.fetch_started:
out.append("fetch_started")
if self.fetch_done:
out.append("fetch_done")
return f"{', '.join(out)} at {id(self):#x}>"
return f"<{', '.join(out)} at {id(self):#x}>"

def preflight(self) -> bool:
"""
Expand Down

0 comments on commit 9250f0d

Please sign in to comment.