Explorar el Código

call subprocess with stringified parameters

Helge Jung hace 9 años
padre
commit
2f3ec68897
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      ffstatus.py

+ 1 - 1
ffstatus.py

@@ -36,7 +36,7 @@ class AlfredParser:
 		ts = int(time.time())
 
 		for datatype in self.alfred_datatypes:
-			rawdata = subprocess.check_output(['alfred-json', '-z', '-r', int(datatype)])
+			rawdata = subprocess.check_output(['alfred-json', '-z', '-r', str(int(datatype))])
 			newdata = json.loads(rawdata)
 			data = dict_merge(data, newdata)