diff --git a/files/classes/comment.py b/files/classes/comment.py index 7c8199042..3aeeafa29 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -114,7 +114,8 @@ class Comment(Base, Age_times, Scores, Stndrd, Fuzzing): @property @lazy def replies(self): - r = [x for x in self.__dict__.get("replies", None) if not x.author.shadowbanned] + r = self.__dict__.get("replies", None) + if r: r = [x for x in r if not x.author.shadowbanned] if not r and r != []: r = sorted([x for x in self.child_comments if not x.author.shadowbanned], key=lambda x: x.score, reverse=True) return r