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: