opencivicdata / scrapers-us-municipal

Scrapers for US municipal governments.
MIT License
101 stars 67 forks source link

Metro: Alert of more than one minutes file, but don't fail the scrape #363

Closed sentry-io[bot] closed 2 years ago

sentry-io[bot] commented 2 years ago

Sentry Issue: SCRAPERS-US-MUNICIPAL-1D2

ValueError: too many values to unpack (expected 1)
  File "lametro/events.py", line 462, in find_approved_minutes
    each for each in attachments

ValueError: More than one attachment for the approved minutes matter
(3 additional frame(s) were not displayed)
...
  File "pupa/cli/commands/update.py", line 327, in do_handle
    report['scrape'] = self.do_scrape(juris, args, scrapers)
  File "pupa/cli/commands/update.py", line 175, in do_scrape
    report[scraper_name] = scraper.do_scrape(**scrape_args)
  File "pupa/scrape/base.py", line 114, in do_scrape
    for obj in self.scrape(**kwargs) or []:
  File "lametro/events.py", line 318, in scrape
    approved_minutes = self.find_approved_minutes(event)
  File "lametro/events.py", line 467, in find_approved_minutes
    "More than one attachment for the approved minutes matter"

ValueError: More than one attachment for the approved minutes matter
hancush commented 2 years ago

Connects https://github.com/datamade/la-metro-councilmatic/issues/742.

Related PRs in this repo: