def _get_matching_last_lobbyist_history(self, lobbyist_ids):
        try:
            last_lobbyist_history = LobbyistHistory.objects.filter(scrape_time__isnull=False).latest('scrape_time')
        except __HOLE__:
            last_lobbyist_history = None
        if last_lobbyist_history is not None:
            last_lobbyist_ids = sorted(last_lobbyist_history.lobbyists.all(), key=lambda lobbyist: lobbyist.id)
            if (lobbyist_ids != last_lobbyist_ids):
                last_lobbyist_history = None
        return last_lobbyist_history
dataset/ETHPy150Open ofri/Open-Knesset/lobbyists/scrapers/__init__.py/MainScraperListStorage._get_matching_last_lobbyist_history