Do not use Exception.message

This does not work in Python 3.

Partial-Bug: 1287323
Change-Id: Iac637bc5a6db21b498f6bce5c48134447c73c6c1