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

[BUG]: Large server size results in Guild.name == None #3088

Closed
Tim269 opened this issue Sep 5, 2021 · 2 comments
Closed

[BUG]: Large server size results in Guild.name == None #3088

Tim269 opened this issue Sep 5, 2021 · 2 comments
Labels
bug This is a confirmed bug staged Staged for next version

Comments

@Tim269
Copy link

Tim269 commented Sep 5, 2021

Bot Version

v3.10.2

How are you hosting Modmail?

Docker

Error Logs

https://hastebin.cc/woyanehixi

2021-09-05 20:00:09 __main__[1475] - ERROR: Ignoring exception in on_ready.
2021-09-05 20:00:09 __main__[1476] - ERROR: Unexpected exception:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/discord/client.py", line 343, in _run_event
    await coro(*args, **kwargs)
  File "/modmailbot/bot.py", line 641, in on_ready
    ", ".join(guild.name for guild in other_guilds),
TypeError: sequence item 0: expected str instance, NoneType found

Screenshots

No response

Additional Information

The bot is in two discord servers at once. Might that trigger it?

The error is persistent for a while now. I asked first about in on the modmail-support channel in Feb 2021.

@Tim269 Tim269 added the maybe: bug An unconfirmed bug label Sep 5, 2021
@fourjr

This comment has been minimized.

@fourjr fourjr added bug This is a confirmed bug and removed maybe: bug An unconfirmed bug labels Sep 5, 2021
@fourjr
Copy link
Collaborator

fourjr commented Sep 5, 2021

Likely due to large server sizes and guild data being sent later, to add in a check when printing other_guilds.

@fourjr fourjr changed the title [BUG]: Unexpected exception (TypeError) [BUG]: Large server size results in Guild.name == None Sep 5, 2021
@fourjr fourjr added the staged Staged for next version label Nov 21, 2021
fourjr added a commit that referenced this issue Nov 21, 2021
@fourjr fourjr closed this as completed Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This is a confirmed bug staged Staged for next version
Projects
None yet
Development

No branches or pull requests

2 participants