Restrict generality of a caught exception.

I think that I found the most common errors that can happen while reading
credentials from a `.netrc` file, but the exception handling system will
surely let me know.