Skip to content

Commit

Permalink
handle empty URIs
Browse files Browse the repository at this point in the history
  • Loading branch information
mnot committed Jul 31, 2024
1 parent 6d29e4f commit 3d36f86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion redbot/formatter/html_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,9 @@ def redbot_link(
Request headers are copied over from the current context.
"""
assert self.resource.request.uri, "resource.request.uri not set in redbot_link"
uri = self.resource.request.uri
if not uri:
return Markup("-")
args: List[Tuple[str, str]] = []
if check_name:
args.append(("check_name", check_name))
Expand Down

0 comments on commit 3d36f86

Please sign in to comment.