Stop using deprecated access to message attribute

The message attribute has been deprecated. See:
http://legacy.python.org/dev/peps/pep-0352/#retracted-ideas
Missing exc
Merge pull request #15192 from cachedout/exc_message

Stop using deprecated access to message attribute