Replaced <exc>.message with str(<exc>)

Change-Id: I9a030b84dafe2b2300e8735052f6f15f34bc7aa7