def _looks_like_logout(self, link, response): if not self.settings.getbool('AUTOLOGIN_ENABLED') or not \ response.meta.get('autologin_active'): return False return link_looks_like_logout(link)