ENG-6893 - Fix deprecation warning in some Pythons re. exception.message...

Some versions of python complain about the use of the "message" member of exception. It's labeled as deprecated. Using str() to extract the message gets the same result without the complaint.