diff --git a/redbot/formatter/html_base.py b/redbot/formatter/html_base.py index e93f80ca..61cebfe9 100644 --- a/redbot/formatter/html_base.py +++ b/redbot/formatter/html_base.py @@ -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))