Nonetype object has no attribute id on ;meta guilds
See original GitHub issueI 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:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed by #409. 😃
@aryanc403 Done 😃