Add more careful norm_text check#133
Conversation
|
This probably doesn't hurt, but assuming that |
|
It's happening in a place where I'm using |
|
Tracked down the culprit by hacking some logging in to the load_entries_from_terms_file() function: https://uts.nlm.nih.gov/uts/umls/concept/C5187432 nice name - |
|
The odd thing is that |
|
I am thinking this might be a weird syncing issue - I don't have UMLS update on the normal cycle since it's so big and hard to work with. I think what happened is that the UMLS index was dumped before we put the check inside the Term object, and so it's indexed with an empty string at the moment, which the load function turns into none since it does a truthy check. I'll try rebuilding UMLS and see what happens |
This makes sure it's not none before checking if it can be stripped. Response to this error: