Why would it be ignorable to have a KeyError here? May be we should note this situation, it doesn't sound like having the flags doc not know a given uid is something good, but may be I'm missing something?