simonw / big-local-datasette

Publishing a Datasette of open projects from biglocalnews.org
https://biglocal.datasettes.com/
2 stars 0 forks source link

AttributeError: 'list' object has no attribute 'isdigit' #23

Closed simonw closed 4 years ago

simonw commented 4 years ago

https://github.com/simonw/big-local-datasette/runs/700420573

Fetching districtcolumbia_warn_raw into DB COVID_WARN_Notices.db
districtcolumbia_warn_raw 4135
Traceback (most recent call last):
  File "../populate_tables.py", line 85, in <module>
    populate_tables(db)
Inserted 69 rows
  File "../populate_tables.py", line 79, in populate_tables
    db[table_name].insert_all(url_to_dicts(url=row["uri"]))
  File "/opt/hostedtoolcache/Python/3.8.3/x64/lib/python3.8/site-packages/sqlite_utils/db.py", line 1031, in insert_all
    chunk = list(chunk)
Fetching florida_warn_raw into DB COVID_WARN_Notices.db
  File "../populate_tables.py", line 17, in url_to_dicts
florida_warn_raw 173998
    if row[key].isdigit():
Inserted 1104 rows
AttributeError: 'list' object has no attribute 'isdigit'