X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/410bfa05ee36ed1d99356c443a5f3f6aa3ee9578..1157280cd8ff44da57a37dfc2f5920e53180f6b4:/forum_modules/project_badges/badges.py diff --git a/forum_modules/project_badges/badges.py b/forum_modules/project_badges/badges.py index f9b6fbc..9633567 100644 --- a/forum_modules/project_badges/badges.py +++ b/forum_modules/project_badges/badges.py @@ -11,10 +11,10 @@ class BugBuster(AbstractBadge): listen_to = (VoteUpAction, ) def award_to(self, action): - if action.node.node_type == "question" and action.node.score == settings.BUG_BUSTER_VOTES_UP: + if action.node.node_type == "question" and int(action.node.score) == int(settings.BUG_BUSTER_VOTES_UP): try: bug = Tag.objects.get(name="bug") if bug in action.node.tags.all(): return action.node.author - except: + except Exception: pass