Protect clear_vote when trial_run is in effect

master^2
David John 7 years ago
parent 8f0087e5c7
commit 772df35c68

@ -130,6 +130,7 @@ class Shredder(object):
def _remove(self, item): def _remove(self, item):
if self._keep_a_copy and self._save_directory: if self._keep_a_copy and self._save_directory:
self._save_item(item) self._save_item(item)
if not self._trial_run:
if self._clear_vote: if self._clear_vote:
try: try:
item.clear_vote() item.clear_vote()

Loading…
Cancel
Save