From e6b7b236053c77254a308c7b961f608f1c912431 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 22 Dec 2022 17:19:31 +0200 Subject: [PATCH] fix 500 error for chud award on profile wall --- files/routes/awards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index 5ab1e4ce8..f4ab395d5 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -275,7 +275,7 @@ def award_thing(v, thing_type, id): g.db.add(thing) elif kind == "agendaposter": if thing_type == 'post' and thing.sub == 'chudrama' \ - or thing_type == 'comment' and thing.post.sub == 'chudrama': + or thing_type == 'comment' and thing.post and thing.post.sub == 'chudrama': abort(403, "You can't give the chud award in /h/chudrama") if author.marseyawarded: