Common module code upgrades

This commit is contained in:
Michael DeHaan 2012-07-17 23:09:57 -04:00
parent 9006d4557d
commit a94ec130d2
3 changed files with 42 additions and 24 deletions

View file

@ -79,16 +79,11 @@ cmd = subprocess.Popen("%s %s" % (modfile, argspath),
stderr=subprocess.PIPE)
(out, err) = cmd.communicate()
if err and err != '':
print "***********************************"
print "RECIEVED DATA ON STDERR, THIS WILL CRASH YOUR MODULE"
print err
sys.exit(1)
try:
print "***********************************"
print "RAW OUTPUT"
print out
print err
results = utils.parse_json(out)
except: