diff options
author | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-05-02 21:40:55 +0200 |
---|---|---|
committer | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-05-02 21:40:55 +0200 |
commit | dec360bee84f046bf40612173ec4e74aebd60599 (patch) | |
tree | e606fe950972abaa1cdb5e0e701c0c08ed3f1040 | |
parent | [AntiVirus] report missing send2trash (diff) | |
download | pyload-dec360bee84f046bf40612173ec4e74aebd60599.tar.xz |
[ExtractArchive] report missing send2trash
-rw-r--r-- | module/plugins/hooks/ExtractArchive.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/module/plugins/hooks/ExtractArchive.py b/module/plugins/hooks/ExtractArchive.py index 05a1e368a..609d0ad62 100644 --- a/module/plugins/hooks/ExtractArchive.py +++ b/module/plugins/hooks/ExtractArchive.py @@ -110,7 +110,7 @@ class ArchiveQueue(object): class ExtractArchive(Hook): __name__ = "ExtractArchive" __type__ = "hook" - __version__ = "1.42" + __version__ = "1.43" __config__ = [("activated" , "bool" , "Activated" , True ), ("fullpath" , "bool" , "Extract with full paths" , True ), @@ -472,6 +472,9 @@ class ExtractArchive(Hook): try: send2trash.send2trash(file) + except NameError: + self.logWarning(_("Unable to move %s to trash: Send2Trash lib not found") % os.path.basename(f)) + except Exception: self.logWarning(_("Unable to move %s to trash") % os.path.basename(f)) |