diff --git a/r2/r2/lib/db/queries.py b/r2/r2/lib/db/queries.py index d17cc4fb8..626b58aff 100644 --- a/r2/r2/lib/db/queries.py +++ b/r2/r2/lib/db/queries.py @@ -1129,6 +1129,10 @@ def queue_vote(user, thing, dir, ip, organic = False, qname = vote_link_q elif isinstance(thing, Comment): qname = vote_comment_q + else: + log.warning("%s tried to vote on %r. that's not a link or comment!", + user, thing) + return amqp.add_item(qname, pickle.dumps((user._id, thing._fullname,