PennyDreadfulMTG / perf-reports

2 stars 7 forks source link

Bot error cmd /`swiss` #58046

Open vorpal-buildbot opened 2 years ago

vorpal-buildbot commented 2 years ago

() {} []

Reported on discordbot by discord user

TypeError '>=' not supported between instances of 'str' and 'int' Stack Trace: ``` Python traceback File "/penny/mtgbot/run.py", line 185, in cli() File "/penny/mtgbot/.venv/lib/python3.10/site-packages/click/core.py", line 1128, in __call__ return self.main(*args, **kwargs) File "/penny/mtgbot/.venv/lib/python3.10/site-packages/click/core.py", line 1053, in main rv = self.invoke(ctx) File "/penny/mtgbot/.venv/lib/python3.10/site-packages/click/core.py", line 1659, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/penny/mtgbot/.venv/lib/python3.10/site-packages/click/core.py", line 1395, in invoke return ctx.invoke(self.callback, **ctx.params) File "/penny/mtgbot/.venv/lib/python3.10/site-packages/click/core.py", line 754, in invoke return __callback(*args, **kwargs) File "/penny/mtgbot/run.py", line 42, in discordbot bot.init() File "/penny/mtgbot/discordbot/bot.py", line 396, in init client.start(configuration.get_str('token')) File "/penny/mtgbot/.venv/src/dis-snek/dis_snek/client.py", line 504, in start self.loop.run_until_complete(self.login(token)) File "/home/discord/.asdf/installs/python/3.10.1/lib/python3.10/asyncio/base_events.py", line 628, in run_until_complete self.run_forever() File "/home/discord/.asdf/installs/python/3.10.1/lib/python3.10/asyncio/base_events.py", line 595, in run_forever self._run_once() File "/home/discord/.asdf/installs/python/3.10.1/lib/python3.10/asyncio/base_events.py", line 1873, in _run_once handle._run() File "/home/discord/.asdf/installs/python/3.10.1/lib/python3.10/asyncio/events.py", line 80, in _run self._context.run(self._callback, *self._args) File "/penny/mtgbot/.venv/src/dis-snek/dis_snek/client.py", line 361, in _async_wrap await _coro(_event, *_args, **_kwargs) File "/penny/mtgbot/.venv/src/dis-snek/dis_snek/models/listener.py", line 13, in __call__ return await self.callback(*args, **kwargs) File "/penny/mtgbot/.venv/src/dis-snek/dis_snek/client.py", line 1131, in _dispatch_msg_commands await self.on_command_error(context, e) File "/penny/mtgbot/.venv/src/dis-snek/dis_snek/client.py", line 1129, in _dispatch_msg_commands await command(context) File "/penny/mtgbot/.venv/src/dis-snek/dis_snek/models/command.py", line 99, in __call__ await self.call_callback(self.callback, context) File "/penny/mtgbot/.venv/src/dis-snek/dis_snek/models/command.py", line 171, in call_callback return await callback(*args, **kwargs) File "/penny/mtgbot/discordbot/commands/swiss.py", line 40, in swiss num_rounds = tournaments.num_rounds_info(num_players, tournaments.StageType.SWISS_ROUNDS) File "/penny/mtgbot/magic/tournaments.py", line 291, in num_rounds_info if (entry['min_players'] is not None and num_players >= entry['min_players']) and (entry['max_players'] is None or num_players <= entry['max_players']): ```

Exception_hash: 7e8a0389229a70b907b9e1c39c61c5dc37c2588f

vorpal-buildbot commented 2 years ago

Bot error cmd /swiss

() {} []

Reported on discordbot by discord user

TypeError '>=' not supported between instances of 'str' and 'int' Stack Trace: ``` Python traceback File "/penny/mtgbot/run.py", line 185, in cli() File "/penny/mtgbot/.venv/lib/python3.10/site-packages/click/core.py", line 1128, in __call__ return self.main(*args, **kwargs) File "/penny/mtgbot/.venv/lib/python3.10/site-packages/click/core.py", line 1053, in main rv = self.invoke(ctx) File "/penny/mtgbot/.venv/lib/python3.10/site-packages/click/core.py", line 1659, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/penny/mtgbot/.venv/lib/python3.10/site-packages/click/core.py", line 1395, in invoke return ctx.invoke(self.callback, **ctx.params) File "/penny/mtgbot/.venv/lib/python3.10/site-packages/click/core.py", line 754, in invoke return __callback(*args, **kwargs) File "/penny/mtgbot/run.py", line 42, in discordbot bot.init() File "/penny/mtgbot/discordbot/bot.py", line 396, in init client.start(configuration.get_str('token')) File "/penny/mtgbot/.venv/src/dis-snek/dis_snek/client.py", line 504, in start self.loop.run_until_complete(self.login(token)) File "/home/discord/.asdf/installs/python/3.10.1/lib/python3.10/asyncio/base_events.py", line 628, in run_until_complete self.run_forever() File "/home/discord/.asdf/installs/python/3.10.1/lib/python3.10/asyncio/base_events.py", line 595, in run_forever self._run_once() File "/home/discord/.asdf/installs/python/3.10.1/lib/python3.10/asyncio/base_events.py", line 1873, in _run_once handle._run() File "/home/discord/.asdf/installs/python/3.10.1/lib/python3.10/asyncio/events.py", line 80, in _run self._context.run(self._callback, *self._args) File "/penny/mtgbot/.venv/src/dis-snek/dis_snek/client.py", line 361, in _async_wrap await _coro(_event, *_args, **_kwargs) File "/penny/mtgbot/.venv/src/dis-snek/dis_snek/models/listener.py", line 13, in __call__ return await self.callback(*args, **kwargs) File "/penny/mtgbot/.venv/src/dis-snek/dis_snek/client.py", line 1131, in _dispatch_msg_commands await self.on_command_error(context, e) File "/penny/mtgbot/.venv/src/dis-snek/dis_snek/client.py", line 1129, in _dispatch_msg_commands await command(context) File "/penny/mtgbot/.venv/src/dis-snek/dis_snek/models/command.py", line 99, in __call__ await self.call_callback(self.callback, context) File "/penny/mtgbot/.venv/src/dis-snek/dis_snek/models/command.py", line 171, in call_callback return await callback(*args, **kwargs) File "/penny/mtgbot/discordbot/commands/swiss.py", line 40, in swiss num_rounds = tournaments.num_rounds_info(num_players, tournaments.StageType.SWISS_ROUNDS) File "/penny/mtgbot/magic/tournaments.py", line 291, in num_rounds_info if (entry['min_players'] is not None and num_players >= entry['min_players']) and (entry['max_players'] is None or num_players <= entry['max_players']): ```

Exception_hash: 7e8a0389229a70b907b9e1c39c61c5dc37c2588f

Labels: discordbot; TypeError