Fixes change to PRAW exception on vote clear

pull/88/head
Scott 8 years ago
parent 705c076abc
commit 1d67dc7c76

@ -4,7 +4,7 @@ from setuptools import setup
from codecs import open
from os import path
VERSION = "6.0.4"
VERSION = "6.0.5"
DESCRIPTION = " Remove your comment history on Reddit as deleting an account does not do so."
here = path.abspath(path.dirname(__file__))

@ -9,7 +9,7 @@ import time
import yaml
from datetime import datetime, timedelta
from praw.models import Comment, Submission
from prawcore.exceptions import ResponseException, OAuthException
from prawcore.exceptions import ResponseException, OAuthException, BadRequest
from re import sub
from shreddit.util import get_sentence, ShredditError
@ -129,7 +129,7 @@ class Shredder(object):
if self._clear_vote:
try:
item.clear_vote()
except HTTPException:
except BadRequest:
self._logger.debug("Couldn't clear vote on {item}".format(item=item))
if isinstance(item, Submission):
self._remove_submission(item)

Loading…
Cancel
Save