summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-05-04 01:24:23 +0200
committerGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-05-04 01:24:23 +0200
commitee360021434803991226d1cc36e7221fb9cbc418 (patch)
tree40ecb74354cb20486fd121db9a2b8c82ec80edc1
parenteven more (diff)
downloadpyload-ee360021434803991226d1cc36e7221fb9cbc418.tar.xz
even more
-rw-r--r--module/plugins/hooks/AntiVirus.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/plugins/hooks/AntiVirus.py b/module/plugins/hooks/AntiVirus.py
index 6823729af..c620f556d 100644
--- a/module/plugins/hooks/AntiVirus.py
+++ b/module/plugins/hooks/AntiVirus.py
@@ -85,11 +85,14 @@ class AntiVirus(Hook):
pyfile.setCustomStatus(_("file moving"))
shutil.move(file, self.getConfig('quardir'))
- except Exception, e:
+ except Exception, e:
self.logWarning(_("Unable to move file to trash: %s, moving to quarantine instead") % e.message)
pyfile.setCustomStatus(_("file moving"))
shutil.move(file, self.getConfig('quardir'))
+ else:
+ self.logDebug(_("Successfully moved file to trash"))
+
elif action == "Quarantine":
pyfile.setCustomStatus(_("file moving"))
shutil.move(file, self.getConfig('quardir'))