funginstitute / patentprocessor

BSD 2-Clause "Simplified" License
68 stars 31 forks source link

Missing locations while running consolidate.py? #64

Closed billyeh closed 10 years ago

billyeh commented 11 years ago

Steps to reproduce:

Resulting error: line 26 of consolidate.py: loc, NoneType object, has no attribute 'state'

billyeh commented 11 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?

gtfierro commented 11 years ago

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.