In my experience what you want is repr(err), which will return both the exception type and the message.
str(err) only gives the message.
In my experience what you want is repr(err), which will return both the exception type and the message.
str(err) only gives the message.