summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/ExternalScripts.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hooks/ExternalScripts.py')
-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: