瀏覽代碼

filter out non-string args

David 10 年之前
父節點
當前提交
46a7977465
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      pmanager/pmanager.py

+ 1 - 0
pmanager/pmanager.py

@@ -142,6 +142,7 @@ class PManager:
         log("Launching! key: %s, opts: %s" % (key, options))
         tolaunch = self.ptable[key]
         if options is not None:
+            options = [ o for o in options if type(o) is str ]
             tolaunch = tolaunch + options
     
         log(tolaunch)