use str(e) instead of e.message

(better compatibility with future Python versions)