Tag repository KeyError to distinguish from regular KeyErrors

This is a quick fix that allows us to retain use of exceptions for
flow control.