Modmail icon indicating copy to clipboard operation
Modmail copied to clipboard

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

Open Tim269 opened this issue 4 years ago • 2 comments

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 avatar Sep 05 '21 18:09 Tim269

Please join the support server and drop me a dm, I'm 4JR.

fourjr avatar Sep 05 '21 18:09 fourjr

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

fourjr avatar Sep 05 '21 18:09 fourjr