summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-08-07 15:45:17 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-08-07 15:45:17 +0200
commit921627014e243fb2dd9b4f9a9dfade26d1e11c12 (patch)
tree2fde2ac7ab11bbca41f2e065095232f46257ab0b /module/plugins/hooks
parentfixes, closed #361 (diff)
downloadpyload-921627014e243fb2dd9b4f9a9dfade26d1e11c12.tar.xz
closed #375
Diffstat (limited to 'module/plugins/hooks')
-rw-r--r--module/plugins/hooks/ExternalScripts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/plugins/hooks/ExternalScripts.py b/module/plugins/hooks/ExternalScripts.py
index 36e026721..e8d929b71 100644
--- a/module/plugins/hooks/ExternalScripts.py
+++ b/module/plugins/hooks/ExternalScripts.py
@@ -73,7 +73,7 @@ class ExternalScripts(Hook):
def callScript(self, script, *args):
try:
- cmd = [script] + [str(x) if type(x) != basestring else x for x in args]
+ cmd = [script] + [str(x) if not isinstance(x, basestring) else x for x in args]
#output goes to pyload
subprocess.Popen(cmd, bufsize=-1)
except Exception, e: