Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Osu] NoneType error. #67

Open
japandotorg opened this issue Jul 11, 2022 · 0 comments
Open

[Osu] NoneType error. #67

japandotorg opened this issue Jul 11, 2022 · 0 comments

Comments

@japandotorg
Copy link

japandotorg commented Jul 11, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant