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.
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!
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.