From 4a6f7372cccdda425e38ec0f2ecabecf3da4b6cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20K=C3=A5berg?= Date: Tue, 26 Feb 2013 10:07:51 +0100 Subject: [PATCH] quick fix --- extractor/extractor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extractor/extractor.py b/extractor/extractor.py index 3e0ab249..d1f27d8a 100644 --- a/extractor/extractor.py +++ b/extractor/extractor.py @@ -4,9 +4,9 @@ import logging Logger = logging.getLogger(__name__) +# which() breaks when running in Transmission (has to do with os.environ["PATH"]) def which(program): # Author Credit: Jay @ http://stackoverflow.com/a/377028 - import os def is_exe(fpath): return os.path.isfile(fpath) and os.access(fpath, os.X_OK) @@ -62,7 +62,7 @@ def extract(dirpath, file, outputDestination): log.error("EXTRACTOR: %s not found, disabling support for %s", cmd, k) del EXTRACT_COMMANDS[k] if not EXTRACT_COMMANDS: - raise Exception("EXTRACTOR: No archive extracting programs found, plugin will be disabled") + Logger.warn("EXTRACTOR: No archive extracting programs found, plugin will be disabled") ext = os.path.splitext(file) filePath = os.path.join(dirpath, file)