Stop the deprecated use of Exception.message to please Python

* This fixes all the warning messages during the test which
  are annoying and verbose

Fixes: bug 1166221
Change-Id: I4b0276f4c29c91a46d8d4913b40e9767bb75a7f1
Merge "Stop the deprecated use of Exception.message to please Python"