HCDigitalScholarship / LinkedFlask

0 stars 0 forks source link

Searching for something that doesn't exist #4

Closed kwaychoff closed 8 years ago

kwaychoff commented 8 years ago

If you search anywhere for a name that doesn't exist or isn't a part of some other name, you get an internal service error. In the terminal it says "TypeError: object of type 'NoneType' has no len()"

I think what is happening is that we try to take the length of regexnames(letterform.name.data) in line 17 and 126, which I'm guessing is nothing when the name isn't in the data.

kwaychoff commented 8 years ago

I think I got it to work just by testing that regexnames(letterform.name.data) wasn't none. I'm not sure if it sends us to exactly where we want it to go, but at least there's no error!