(self, repository_id)
return None
Get repository by ID.
Get repository by ID.
Get repository by ID .
def get_by_id(self, repository_id):
        """Get repository by ID."""
        try:
            for repository in self.repositories:
                if repository.information.uid == repository_id:
                    return repository
        except Exception:  # pylint: disable=broad-except
            pass
        return None
def get_by_id ( self , repository_id ) : try : for repository in self . repositories : if repository . information . uid == repository_id : return repository except Exception : # pylint: disable=broad-except pass return None