From f249a7ea5b8a1ecb739983ac1ad2334064cfcb84 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 21 Apr 2020 23:32:27 +0200 Subject: [PATCH] publish: 5.7.4 --- poetry.lock | 12 ++++++------ pyproject.toml | 2 +- royalpack/commands/matchmaking.py | 4 ++-- royalpack/version.py | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/poetry.lock b/poetry.lock index 696d29c7..5789d48c 100644 --- a/poetry.lock +++ b/poetry.lock @@ -521,7 +521,7 @@ description = "We have made you a wrapper you can't refuse" name = "python-telegram-bot" optional = false python-versions = "*" -version = "12.6" +version = "12.6.1" [package.dependencies] certifi = "*" @@ -588,7 +588,7 @@ description = "A multipurpose bot and web framework" name = "royalnet" optional = false python-versions = ">=3.8,<4.0" -version = "5.7.5" +version = "5.7.6" [package.dependencies] dateparser = ">=0.7.2,<0.8.0" @@ -1271,8 +1271,8 @@ python-multipart = [ {file = "python-multipart-0.0.5.tar.gz", hash = "sha256:f7bb5f611fc600d15fa47b3974c8aa16e93724513b49b5f95c81e6624c83fa43"}, ] python-telegram-bot = [ - {file = "python-telegram-bot-12.6.tar.gz", hash = "sha256:a9b5615edc69216e75745dc25ff11fbe5be0104efbaad0772e0aa6a4bc2fc844"}, - {file = "python_telegram_bot-12.6-py2.py3-none-any.whl", hash = "sha256:c4278fe3aad0e30aa1d2e79850f22e7fa2f6951e1e20a1b0c4e6f335220bb0cf"}, + {file = "python-telegram-bot-12.6.1.tar.gz", hash = "sha256:935397390910291c8e41d7f2a06a3bb13d1d74d78b59562be9f8a330d4527049"}, + {file = "python_telegram_bot-12.6.1-py2.py3-none-any.whl", hash = "sha256:c7bdb5788ad2edea5c5c1bc8e50967fad68aa35245c209baadf74fc8ad00ff06"}, ] pytz = [ {file = "pytz-2019.3-py2.py3-none-any.whl", hash = "sha256:1c557d7d0e871de1f5ccd5833f60fb2550652da6be2693c1e02300743d21500d"}, @@ -1310,8 +1310,8 @@ riotwatcher = [ {file = "riotwatcher-2.7.1.tar.gz", hash = "sha256:5349271c7e00637b7619491a6070e66603705db60558ea2a690e7016f6e6d9a4"}, ] royalnet = [ - {file = "royalnet-5.7.5-py3-none-any.whl", hash = "sha256:d85afa59524482f8fa72f984cb9ec24e5517a0dfd280812097e766073fb98529"}, - {file = "royalnet-5.7.5.tar.gz", hash = "sha256:785dad6a8b9afaf6517ec30f06441265a3a57acf033e199706f1bc3156cd843a"}, + {file = "royalnet-5.7.6-py3-none-any.whl", hash = "sha256:7c37ebaf4ba15c3fbb292305476112bc01554fb1f1a0f616985ff5bf96ec0bae"}, + {file = "royalnet-5.7.6.tar.gz", hash = "sha256:2be381b35ccb1f30651021bbb3515cb8523bf3f98713a0bb861757747090f554"}, ] royalspells = [ {file = "royalspells-3.2.tar.gz", hash = "sha256:2bd4a9a66514532e35c02c3907425af48c7cb292364c4843c795719a82b25dfe"}, diff --git a/pyproject.toml b/pyproject.toml index 8f8171a2..7e04a054 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ [tool.poetry] name = "royalpack" - version = "5.7.3" + version = "5.7.4" description = "A Royalnet command pack for the Royal Games community" authors = ["Stefano Pigozzi "] license = "AGPL-3.0+" diff --git a/royalpack/commands/matchmaking.py b/royalpack/commands/matchmaking.py index 7851399f..4e9dd5a1 100644 --- a/royalpack/commands/matchmaking.py +++ b/royalpack/commands/matchmaking.py @@ -7,7 +7,7 @@ from telegram import Bot as PTBBot from telegram import Message as PTBMessage from telegram import InlineKeyboardMarkup as InKM from telegram import InlineKeyboardButton as InKB -from telegram.error import BadRequest, Unauthorized +from telegram.error import TelegramError from royalnet.commands import * from royalnet.serf.telegram import TelegramSerf as TelegramBot from royalnet.serf.telegram import escape as telegram_escape @@ -260,7 +260,7 @@ class MatchmakingCommand(Command): text=telegram_escape(self._gen_event_start_message(mmevent)), parse_mode="HTML", disable_webpage_preview=True) - except Unauthorized: + except TelegramError: await self.interface.serf.api_call(client.send_message, chat_id=self.config["Telegram"]["main_group_id"], text=telegram_escape(self._gen_unauth_message(response.user)), diff --git a/royalpack/version.py b/royalpack/version.py index c4bd3225..9198a640 100644 --- a/royalpack/version.py +++ b/royalpack/version.py @@ -1 +1 @@ -semantic = "5.7.3" +semantic = "5.7.4"