Skip to content

enrich and skip-vera options crash without 'scrape' option #62

@HongPong

Description

@HongPong
ice_detention_scraper$  uv run python main.py --enrich --skip-vera
ICE Detention Facilities Scraper by the Open Security Mapping Project. MIT License.
Traceback (most recent call last):
  File "ice_detention_scraper/main.py", line 160, in <module>
    main()
    ~~~~^^
  File "ice_detention_scraper/main.py", line 144, in main
    if not facilities_data:
           ^^^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'facilities_data' where it is not associated with a value

with the scrape option it works seemingly fine;

 uv run python main.py --scrape --enrich --skip-vera

this could have been my mistake in the merges, i am not certain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions