Skip to content

Commit

Permalink
Move members-search inside try-block (#926)
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsOerbaek authored Nov 10, 2022
1 parent 4199a6a commit 7f00382
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions facebook_scraper/facebook_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,10 +757,10 @@ def get_group_info(self, group, **kwargs) -> Profile:
except:
result["about"] = None

url = members.find("a", first=True).attrs.get("href")
logger.debug(f"Requesting page from: {url}")

try:
url = members.find("a", first=True).attrs.get("href")
logger.debug(f"Requesting page from: {url}")

resp = self.get(url).html
url = resp.find("a[href*='listType=list_admin_moderator']", first=True)
if kwargs.get("admins", True):
Expand Down

0 comments on commit 7f00382

Please sign in to comment.