fix(aurora): make sure the bot
key does not exist in the Change.from_dict()
data dictionary
This commit is contained in:
parent
4d2004ed93
commit
cd3d3c7733
1 changed files with 2 additions and 0 deletions
|
@ -69,4 +69,6 @@ class Change(AuroraBaseModel):
|
||||||
"end_timestamp": end_timestamp,
|
"end_timestamp": end_timestamp,
|
||||||
"duration": duration
|
"duration": duration
|
||||||
})
|
})
|
||||||
|
if "bot" in data:
|
||||||
|
del data["bot"]
|
||||||
return cls(bot=bot, **data)
|
return cls(bot=bot, **data)
|
||||||
|
|
Loading…
Reference in a new issue