There's no 'message' attribute for exceptions in Python3, simply use 'str(...)' instead.