Fix UnboundLocalError in _badge() - ensure web_url initialization

pull/160/head
PC 2025-07-11 22:15:30 +03:00
parent 9a042c489a
commit cd48064154
1 changed files with 13 additions and 14 deletions

View File

@ -839,13 +839,12 @@ class Heroku:
f"• Version: {'.'.join(list(map(str, list(__version__))))}\n"
f"{upd}\n"
)
web_url = ""
if not self.omit_log:
print(logo)
if self.web and hasattr(self.web, "url"):
web_url = (
f"🔗 Web url: {self.web.url}"
if self.web and hasattr(self.web, "url")
else ""
)
logging.debug(
"\n🪐 Heroku %s #%s (%s) started\n%s",