diff --git a/automon/integrations/facebook/groups.py b/automon/integrations/facebook/groups.py index 571f6fc1..bee84bc3 100644 --- a/automon/integrations/facebook/groups.py +++ b/automon/integrations/facebook/groups.py @@ -42,7 +42,10 @@ def close_login_popup(self): value='[aria-label="Close"]', by=self._browser.by.CSS_SELECTOR, ) - button[0].click() + + if button: + button[0].click() + logger.debug(button) except Exception as error: logger.error(error)