Jintaku-Cogs-V3 icon indicating copy to clipboard operation
Jintaku-Cogs-V3 copied to clipboard

[Osu] NoneType error.

Open japandotorg opened this issue 2 years ago • 0 comments

Exception in command 'osu'
Traceback (most recent call last):
  File "/root/MELON/lib/python3.9/site-packages/discord/ext/commands/core.py", line 85, in wrapped
    ret = await coro(*args, **kwargs)
  File "/root/.local/share/Red-DiscordBot/data/MELON/cogs/CogManager/cogs/osu/osu.py", line 41, in osu
    embed.add_field(name="Accuracy", value=osu[0]["accuracy"][:6])
TypeError: 'NoneType' object is not subscriptable

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

Traceback (most recent call last):
  File "/root/MELON/lib/python3.9/site-packages/discord/ext/commands/bot.py", line 939, in invoke
    await ctx.command.invoke(ctx)
  File "/root/MELON/lib/python3.9/site-packages/discord/ext/commands/core.py", line 863, in invoke
    await injected(*ctx.args, **ctx.kwargs)
  File "/root/MELON/lib/python3.9/site-packages/discord/ext/commands/core.py", line 94, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: 'NoneType' object is not subscriptable

the cog works fine for some usernames, but it cannot seem to identify/fetch a specific set of usernames, can be more than what i know of right now but yeah, it just won't respond when using those usernames, like japandotorg - my username

japandotorg avatar Jul 11 '22 17:07 japandotorg