From b3bb5fa129d996a44995ffebd584c9ad5a6a897d Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 13 Dec 2016 21:05:48 -0600 Subject: [PATCH] Fixes change to PRAW exception on vote clear --- setup.py | 2 +- shreddit/shredder.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 6c4b7ff..cafe16a 100644 --- a/setup.py +++ b/setup.py @@ -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__)) diff --git a/shreddit/shredder.py b/shreddit/shredder.py index 05c1065..3c0891e 100644 --- a/shreddit/shredder.py +++ b/shreddit/shredder.py @@ -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)