mirror of
https://github.com/corpnewt/gibMacOS.git
synced 2024-09-20 01:30:33 +00:00
Update run.py from pymodules
This commit is contained in:
parent
fe2aa87897
commit
a01c885a59
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue