fixed deprication warning on exception.message access
This commit is contained in:
@@ -575,7 +575,7 @@ if __name__ == "__main__":
|
|||||||
try:
|
try:
|
||||||
main()
|
main()
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
if e.message == "Exiting":
|
if e.args[0] == "Exiting":
|
||||||
logging.info("Exiting...")
|
logging.info("Exiting...")
|
||||||
doExit(code=0, wait=False)
|
doExit(code=0, wait=False)
|
||||||
logging.exception("""An error has occurred. This may be a bug. Please let us know!
|
logging.exception("""An error has occurred. This may be a bug. Please let us know!
|
||||||
|
|||||||
Reference in New Issue
Block a user