From e3f2eccf8ae8e1b6358c1f34a1743afb340c29b2 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 14 Dec 2021 02:54:19 +0200 Subject: [PATCH] fsdfds --- files/classes/submission.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/classes/submission.py b/files/classes/submission.py index 681ba8d8e..731df7acd 100644 --- a/files/classes/submission.py +++ b/files/classes/submission.py @@ -229,7 +229,7 @@ class Submission(Base): flags = {} for f in self.flags: flags[f.user.username] = f.reason - data = {'author_name': self.author.username, + data = {'author_name': self.author.username if self.author else '', 'permalink': self.permalink, 'is_banned': bool(self.is_banned), 'deleted_utc': self.deleted_utc,