question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nonetype object has no attribute id on ;meta guilds

See original GitHub issue

I just installed TLE on a Ubuntu 20.04 DigitalOcean Droplet and I’m having trouble with the ;handle command. It registers users correctly but when trying ;handle list I get the error “No members with registered handles.” I checked poetry.lock and discord.py is correctly set on version 1.4.2 so I’m unsure about what’s happening.

Also, I’m getting an error on ;meta guilds which might be relevant:

06-11-2020 18:29:05:ERROR:tle.util.discord_common:Ignoring exception in command meta guilds:
Traceback (most recent call last):
  File "/root/.cache/pypoetry/virtualenvs/tle-F1GuQE82-py3.8/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
    ret = await coro(args, **kwargs)
  File "/root/dev/programs/TLE/tle/cogs/meta.py", line 95, in guilds
    msg = [f'Guild ID: {guild.id} | Name: {guild.name} | Owner: {guild.owner.id} | Icon: {guild.icon_url}'
  File "/root/dev/programs/TLE/tle/cogs/meta.py", line 95, in <listcomp>
    msg = [f'Guild ID: {guild.id} | Name: {guild.name} | Owner: {guild.owner.id} | Icon: {guild.icon_url}'
AttributeError: 'NoneType' object has no attribute 'id'

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

Traceback (most recent call last):
  File "/root/.cache/pypoetry/virtualenvs/tle-F1GuQE82-py3.8/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 903, in invoke
    await ctx.command.invoke(ctx)
  File "/root/.cache/pypoetry/virtualenvs/tle-F1GuQE82-py3.8/lib/python3.8/site-packages/discord/ext/commands/core.py", line 1302, in invoke
    await ctx.invoked_subcommand.invoke(ctx)
  File "/root/.cache/pypoetry/virtualenvs/tle-F1GuQE82-py3.8/lib/python3.8/site-packages/discord/ext/commands/core.py", line 850, in invoke
    await injected(ctx.args, **ctx.kwargs)
  File "/root/.cache/pypoetry/virtualenvs/tle-F1GuQE82-py3.8/lib/python3.8/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: AttributeError: 'NoneType' object has no attribute 'id'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
algmyrcommented, Nov 10, 2020

Fixed by #409. 😃

1reaction
dgcnzcommented, Nov 7, 2020

@aryanc403 Done 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

AttributeError: 'NoneType' object has no attribute 'id' for ...
I'm pretty sure it's the ctx.guild.owner.id , in which case is not a proper way to retrieve the guild owner. If you want...
Read more >
'NoneType' object has no attribute 'id' - asdeasoft.net
I am trying to do an eigenanalysis of a building, when I run the analysis, I get the 'NoneType' object has no attribute...
Read more >
[Django] #21040: Bug in db/models/base.py, 'NoneType ...
Got an error: AttributeError: 'NoneType' object has no attribute 'attname'. Because a model can be 'abstract = True' doesn't have a pk, but...
Read more >
"AttributeError: 'NoneType' object has no attribute '_meta'" on ...
Observed Behavior. Page load fails, with AttributeError: 'NoneType' object has no attribute '_meta'. Deleting the Relationship(s) in question ...
Read more >
AttributeError: 'NoneType' object has no attribute 'id' - Trac Hacks
While doing a GET operation on /discussion/topic/3 , Trac issued an internal error. (please provide additional details here) AttributeError: 'NoneType' object ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found