Upgrades to error handling, now general try/catch available.

This commit is contained in:
Michael DeHaan 2012-03-13 20:59:05 -04:00
parent 2e1b59a9d2
commit 4ae98ed92d
5 changed files with 92 additions and 52 deletions

View file

@ -136,7 +136,7 @@ def dark_hosts_msg(results):
''' summarize the results of all uncontactable hosts '''
buf = ''
if len(results['dark'].keys()) > 0:
buf += "\n*** Hosts which could not be contacted or did not respond: ***\n"
buf += "\n*** Hosts with fatal errors: ***\n"
for hostname in results['dark'].keys():
buf += "%s: %s\n" % (hostname, results['dark'][hostname])
buf += "\n"