Fix attribute error when trying to connect interactively causing logins to fail.