From 98e39b6ea49fdd37006d1c0283811c9d65feaf04 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 25 Oct 2011 14:58:39 +0200 Subject: closed #410 --- module/plugins/hooks/ExtractArchive.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'module/plugins/hooks') diff --git a/module/plugins/hooks/ExtractArchive.py b/module/plugins/hooks/ExtractArchive.py index eaa68b834..5bedc4293 100644 --- a/module/plugins/hooks/ExtractArchive.py +++ b/module/plugins/hooks/ExtractArchive.py @@ -95,6 +95,14 @@ class ExtractArchive(Hook): names.append(p) self.plugins.append(klass) + except OSError, e: + if e.errno == 2: + self.logInfo(_("No %s installed")) + else: + self.logWarning(_("Could not activate %s") % p, str(e)) + if self.core.debug: + print_exc() + except Exception, e: self.logWarning(_("Could not activate %s") % p, str(e)) if self.core.debug: -- cgit v1.2.3