def populate_from_match(self, match):
        """Populate instance data from a match.

        Args:
            match: A regex match corresponding to the match method for
                this class.

        Raises:
            GitRvException: If the match is None.
            GitRvException: If one of the repository or organization named
                groups is not in the match.
        """
        if match is None:
            raise GitRvException('Expected match, received None.')

        try:
            self.repository = match.group('repository')
            self.organization = match.group('organization')
        except __HOLE__:
            raise GitRvException('Expected group not matched.')
dataset/ETHPy150Open googlearchive/git-rv/utils.py/GithubRepositoryInfo.populate_from_match