Update run.py from pymodules

This commit is contained in:
CorpNewt 2020-03-16 11:47:18 -05:00
parent fe2aa87897
commit a01c885a59

View file

@ -69,7 +69,8 @@ class Run:
return (output+o, error+e, p.returncode) return (output+o, error+e, p.returncode)
except: except:
if p: if p:
o, e = p.communicate() try: o, e = p.communicate()
except: o = e = ""
return (output+o, error+e, p.returncode) return (output+o, error+e, p.returncode)
return ("", "Command not found!", 1) return ("", "Command not found!", 1)