Skip to content

Commit

Permalink
fix: attribute err for root
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Sep 17, 2024
1 parent de8bc1e commit 5105a01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dooit/api/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def nest_level(self):
while (
parent
and isinstance(self, parent.__class__)
and not getattr(parent, "is_root")
and not getattr(parent, "is_root", False)
):
level += 1
parent = parent.parent
Expand Down

0 comments on commit 5105a01

Please sign in to comment.