From a2f4ee283725849aebf7f0746d655819b1ef1fbf Mon Sep 17 00:00:00 2001 From: David John Date: Tue, 22 Nov 2016 09:44:15 +0000 Subject: [PATCH] Up the user agent string --- shreddit/shredder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shreddit/shredder.py b/shreddit/shredder.py index 912e278..b20caa6 100644 --- a/shreddit/shredder.py +++ b/shreddit/shredder.py @@ -61,7 +61,7 @@ class Shredder(object): self.shred() def _connect(self, praw_ini, username, password): - self._r = praw.Reddit(user_agent="shreddit/4.2") + self._r = praw.Reddit(user_agent="shreddit/4.4") if praw_ini: # PRAW won't panic if the file is invalid, so check first if not os.path.exists(praw_ini): @@ -118,7 +118,7 @@ class Shredder(object): short_text = sub(b"\n\r\t", " ", comment.body[:35].encode("utf-8")) msg = "/r/{}/ #{} ({}) with: {}".format(comment.subreddit, comment.id, short_text, replacement_text) - + if self._edit_only: self._logger.debug("Editing (not removing) {msg}".format(msg=msg)) else: