Skip to content

[BUG] kwargs modified during iteration in the DictSerializerMixin #683

@V3ntus

Description

@V3ntus

Describe the bug.

This seems to be invoked inconsistently and I'm not quite sure what triggers it

List the steps.

  • This first originated from a simple ctx.send with an embed

What you expected.

Normal operation

What you saw.

future: <Task finished name='Task-12' coro=<Weather.get_weather() done, defined at /Users/ventus/GitRepos/bamboos-sidekick/cogs/weather.py:137> exception=RuntimeError('dictionary changed size during iteration')>
Traceback (most recent call last):
  File "/Users/ventus/GitRepos/bamboos-sidekick/cogs/weather.py", line 159, in get_weather
    await ctx.send(embeds=Embed(
  File "/Users/ventus/GitRepos/bamboos-sidekick/interactions/api/models/message.py", line 1028, in __init__
    super().__init__(**kwargs)
  File "/Users/ventus/GitRepos/bamboos-sidekick/interactions/api/models/misc.py", line 39, in __init__
    for key in kwargs:
RuntimeError: dictionary changed size during iteration

What version of the library did you use?

unstable

Version specification

No response

Code of Conduct

  • I agree to follow the contribution requirements.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions