Remove raised info from exception message and create separate list for it.

def _process_exlist(self, exc, raised):
        """Remove raised info from exception message and create separate list for it."""
        if (not raised) or (raised and exc.endswith("*")):
            return exc[:-1] if exc.endswith("*") else exc
        return None