Jelajahi Sumber

filter out non-string args

David 10 tahun lalu
induk
melakukan
46a7977465
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  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)