]> git.openstreetmap.org Git - osqa.git/blobdiff - forum_modules/project_badges/badges.py
Remove footer link to squatted domain
[osqa.git] / forum_modules / project_badges / badges.py
index f9b6fbc75b3e7e349743e9bef0212e6b3b290ba4..9633567c487feb47052865fda8b3b9936bc5482a 100644 (file)
@@ -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