Skip to content

Commit

Permalink
Explicitly test for None.
Browse files Browse the repository at this point in the history
  • Loading branch information
mnot committed Nov 5, 2023
1 parent 3d96f28 commit 571b583
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions redbot/formatter/html_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ def feed(self, sample: bytes) -> None:
pass

def start_output(self) -> None:
if self.resource:
uri = self.resource.request.uri or ""
req_headers = self.resource.request.headers.text
else:
if self.resource is None:
uri = ""
req_headers = []
else:
uri = self.resource.request.uri or ""
req_headers = self.resource.request.headers.text
extra_title = " <span class='save'>"
if self.kw.get("is_saved", None):
extra_title += " saved "
Expand Down

0 comments on commit 571b583

Please sign in to comment.