Fix getting exception message on Python 3.