datadesk/inciweb-wildfires

Error in inciweb_wildfires.get_incidents()

Closed this issue · 2 comments

Hi,
I am getting this error on running :
data = inciweb_wildfires.get_incidents()

Traceback (most recent call last):
line 27, in get_usa_incidents
    data = inciweb_wildfires.get_incidents()
  File "python3.7/site-packages/inciweb_wildfires/__init__.py", line 14, in get_incidents
    content = r.json()["markers"]
  File "/python3.7/site-packages/requests/models.py", line 975, in json
    raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Looks like the source URL was moved. We are now getting an 404 https://github.com/datadesk/inciweb-wildfires/blob/main/inciweb_wildfires/__init__.py#L12

I'll hunt for whatever they changed.

I have switched the library to a KML parse and I think this is fixed.