diff options
Diffstat (limited to 'module/plugins/hooks/ExternalScripts.py')
-rw-r--r-- | module/plugins/hooks/ExternalScripts.py | 2 |
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: |