From 07902a54a0cb073646881d6274630b6bbbfae0fb Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 26 Sep 2015 18:20:56 -0400 Subject: [PATCH] Added ascii encoding for trial_run output --- shreddit.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shreddit.py b/shreddit.py index ef52fea..8a70a84 100755 --- a/shreddit.py +++ b/shreddit.py @@ -152,6 +152,8 @@ def remove_things(things): if trial_run: # Don't do anything, trial mode! if verbose: + content = thing + content = str(content).encode('ascii', 'ignore') print("Would have deleted {thing}: '{content}'".format( thing=thing.id, content=thing)) continue