Remove DeprecationWarning about BaseException.message