diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-08-07 15:45:17 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-08-07 15:45:17 +0200 |
commit | 921627014e243fb2dd9b4f9a9dfade26d1e11c12 (patch) | |
tree | 2fde2ac7ab11bbca41f2e065095232f46257ab0b /module/plugins/hooks | |
parent | fixes, closed #361 (diff) | |
download | pyload-921627014e243fb2dd9b4f9a9dfade26d1e11c12.tar.xz |
closed #375
Diffstat (limited to 'module/plugins/hooks')
-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: |