Check if url exists in changelog and adjust Discord message for it (#22718)

This commit is contained in:
SlamBamActionman
2023-12-19 06:22:23 +01:00
committed by GitHub
parent d7afa3387b
commit 3dafaa3e1c
2 changed files with 6 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ def main():
"time", datetime.datetime.now(datetime.timezone.utc).isoformat()
)
changes = partyaml["changes"]
url = partyaml["url"]
url = partyaml.get("url")
if not isinstance(changes, list):
changes = [changes]