mirror of https://github.com/coddrago/Heroku
Fix UnboundLocalError in _badge() - ensure web_url initialization
parent
9a042c489a
commit
cd48064154
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue