I want to work with the error message from an exception but can\'t seem to convert it to a string. I\'ve read the os library man page but something is not clicking for me.
In my experience what you want is repr(err), which will return both the exception type and the message.
repr(err)
str(err) only gives the message.
str(err)