opencivicdata / scrapers-us-municipal

Scrapers for US municipal governments.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

sentry-io opened this issue · comments

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