Skip to content

Commit

Permalink
More fault tolerant
Browse files Browse the repository at this point in the history
  • Loading branch information
Yomguithereal committed Apr 10, 2024
1 parent 0735bf5 commit d0c6b31
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions minet/cli/facebook/user_infos.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,9 @@ def action(cli_args, enricher, loading_bar: LoadingBar):

for row, user_url in enricher.cells(cli_args.column, with_rows=True):
with loading_bar.step():
user_infos = scraper.user_infos(user_url)
enricher.writerow(row, user_infos)
try:
user_infos = scraper.user_infos(user_url)
enricher.writerow(row, user_infos)
except TypeError:
enricher.writerow(row)
loading_bar.inc_stat("invalid-url", style="error")

0 comments on commit d0c6b31

Please sign in to comment.