movsesyanpv / clanBot

Discord bot for Destiny 2 reset updates and clan leaderboards with LFG functionality
https://discord.com/oauth2/authorize?client_id=677145368894373965&permissions=395204623424&scope=bot%20applications.commands
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Exception on message #152

Closed movsesyanpv closed 4 years ago

movsesyanpv commented 4 years ago

Message

<@!677145368894373965> lfg -e: true

Traceback

  File "/home/pi/.local/lib/python3.7/site-packages/discord/ext/commands/core.py", line 83, in wrapped
    ret = await coro(*args, **kwargs)
  File "/home/pi/clanBot/cogs/group.py", line 156, in lfg
    group_id = await self.guild_lfg(ctx, lang)
  File "/home/pi/clanBot/cogs/group.py", line 39, in guild_lfg
    embed = ctx.bot.raid.make_embed(message, ctx.bot.translations[lang])
  File "/home/pi/clanBot/raid.py", line 381, in make_embed
    ts = timezone(timedelta(hours=int(tz_elements[0]), minutes=int(tz_elements[1])))
IndexError: list index out of range

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/pi/clanBot/main.py", line 440, in on_command_error
    raise exception
  File "/home/pi/.local/lib/python3.7/site-packages/discord/ext/commands/bot.py", line 892, in invoke
    await ctx.command.invoke(ctx)
  File "/home/pi/.local/lib/python3.7/site-packages/discord/ext/commands/core.py", line 797, in invoke
    await injected(*ctx.args, **ctx.kwargs)
  File "/home/pi/.local/lib/python3.7/site-packages/discord/ext/commands/core.py", line 92, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: IndexError: list index out of range
movsesyanpv commented 4 years ago

Somehow the db column order was borked