Closed billyeh closed 10 years ago
I'm not sure if this is a very high priority issue - seems like some rawlocation has quite a few null foreign keys to the location table. There were notices while running clean.py that there were some cities that weren't found in the location table, though, so maybe that was it. Should we have a way to avoid the null error in that case?
I was talking with @vadskye about this problem, so it's a known issue, but it's nice to have a set input that recreates the issue. I'll adjust the consolidate.py
code to account for the null location.
Steps to reproduce:
parse.py
,clean.py
, andconsolidate.py
Resulting error: line 26 of
consolidate.py
: loc, NoneType object, has no attribute 'state'