0

fixed deprication warning on exception.message access

This commit is contained in:
Andrew Brown
2011-12-03 12:10:18 -05:00
parent 79060b6957
commit 647c73f52b

View File

@@ -575,7 +575,7 @@ if __name__ == "__main__":
try:
main()
except Exception, e:
if e.message == "Exiting":
if e.args[0] == "Exiting":
logging.info("Exiting...")
doExit(code=0, wait=False)
logging.exception("""An error has occurred. This may be a bug. Please let us know!