You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
While writing a discord bot for a project of a friend of mine i noticed that the get_or_create function does not seem to work as expected.
I can also fully confirm that every value has something in it.
I did a print before the model creation call which confirms that every parameter should receive a proper value.
The following error occurs: (The last one is obviously a discord error)
Describe the bug
While writing a discord bot for a project of a friend of mine i noticed that the
get_or_create
function does not seem to work as expected.I can also fully confirm that every value has something in it.
I did a print before the model creation call which confirms that every parameter should receive a proper value.
The following error occurs: (The last one is obviously a discord error)
To Reproduce
Using this code it will crash with the mentioned error.
RuleMessage looks like this:
Expected behavior
The model is either written to the database or retrieved from the database.
Additional context
Using
.save()
on it saves it to the database and works as expected.But this is rather cumbersome.
The text was updated successfully, but these errors were encountered: