Fix nonetype error on embed summary
This commit is contained in:
parent
d2a8080c3a
commit
a35561d567
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ class CaseCog(Cog):
|
||||||
|
|
||||||
action_output = ""
|
action_output = ""
|
||||||
action_output_extra = ""
|
action_output_extra = ""
|
||||||
for idx, action in enumerate(mod_case.actions):
|
for idx, action in enumerate(mod_case.actions or []):
|
||||||
parent_action = await ACTIONS_LOOKUP[action.action_type].find_one(q(id=action.parent))
|
parent_action = await ACTIONS_LOOKUP[action.action_type].find_one(q(id=action.parent))
|
||||||
if not parent_action:
|
if not parent_action:
|
||||||
action.orphaned = True
|
action.orphaned = True
|
||||||
|
|
Loading…
Add table
Reference in a new issue