Update run.py from pymodules

This commit is contained in:
CorpNewt 2020-03-16 11:47:18 -05:00
parent fe2aa87897
commit a01c885a59
1 changed files with 2 additions and 1 deletions

View File

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