Remove use of deprecated BaseException.message field