Fix for KeyError

This happens with OAuth isn't setup correctly or you use the wrong
endpoint.