The following stacktrace occurs in a separate application using this library. It appears the root cause is occurring in the openfema api client itself.
2020-09-22 14:00:02,420 - openfema-api-client - INFO - Fetching metadata from https://www.fema.gov/api/open/v2/DisasterDeclarationsSummaries
Traceback (most recent call last):
File "/home/drew/etl-scripts/main.py", line 27, in <module>
disaster_declarations.run_etl(db, last_updated_start, None)
File "/home/drew/etl-scripts/disaster_declarations.py", line 40, in run_etl
etl_runner.run_etl(table_name, start_date, end_date, db, create_disaster_declarations_generator, map_disasters_to_db)
File "/home/drew/etl-scripts/etl_runner.py", line 8, in run_etl
generator_wrapper = generator_wrapper_fn(start_date, end_date=end_date)
File "/home/drew/etl-scripts/venv/lib/python3.7/site-packages/openfemaapiclient/core.py", line 124, in create_disaster_declarations_generator
response_mapper=declaration_mapper)
File "/home/drew/etl-scripts/venv/lib/python3.7/site-packages/openfemaapiclient/core.py", line 59, in fetch_from_api_generator
items_per_page)
TypeError: cannot unpack non-iterable NoneType object
The following stacktrace occurs in a separate application using this library. It appears the root cause is occurring in the openfema api client itself.