Use append add error message to dictionary

Using extend on a string adds characters individually. Also, Exception.message is deprecated.