fix(aurora): fixed another typeerror
This commit is contained in:
parent
51d3245703
commit
797fd561c9
1 changed files with 3 additions and 2 deletions
|
@ -173,8 +173,9 @@ class Moderation(AuroraGuildModel):
|
|||
if result[14] is not None:
|
||||
changes = json.loads(result[14])
|
||||
change_obj_list = []
|
||||
for change in changes:
|
||||
change_obj_list.append(Change.from_dict(bot=bot, data=change))
|
||||
if changes:
|
||||
for change in changes:
|
||||
change_obj_list.append(Change.from_dict(bot=bot, data=change))
|
||||
|
||||
case = {
|
||||
"moderation_id": int(result[0]),
|
||||
|
|
Loading…
Reference in a new issue