From 7856c74c7b5f19be193c7c8551cc55d017767ee1 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 24 Feb 2020 01:50:54 +0100 Subject: [PATCH] Fix play API bug --- pyproject.toml | 2 +- royalpack/stars/api_discord_play.py | 2 ++ royalpack/version.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d056bc39..11c85e0f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ [tool.poetry] name = "royalpack" - version = "5.5.1" + version = "5.5.2" description = "A Royalnet command pack for the Royal Games community" authors = ["Stefano Pigozzi "] license = "AGPL-3.0+" diff --git a/royalpack/stars/api_discord_play.py b/royalpack/stars/api_discord_play.py index 881cae59..26487dc5 100644 --- a/royalpack/stars/api_discord_play.py +++ b/royalpack/stars/api_discord_play.py @@ -18,6 +18,8 @@ class ApiDiscordPlayStar(ApiStar): guild_id: Optional[int] = int(guild_id_str) except (ValueError, TypeError): raise InvalidParameterError("'guild_id' is not a valid int.") + else: + guild_id = None log.info(f"Received request to play {url} on guild_id {guild_id} via web") response = await self.interface.call_herald_event("discord", "discord_play", url=url, diff --git a/royalpack/version.py b/royalpack/version.py index 4a50633f..6573d14b 100644 --- a/royalpack/version.py +++ b/royalpack/version.py @@ -1 +1 @@ -semantic = "5.5.1" +semantic = "5.5.2"