def login(args):
    password = getpass.getpass()
    try:
        ts = reap.api.timesheet.Timesheet(args.baseuri, args.username, password)
    except __HOLE__:
        print 'Invalid Credentials.'
        return
    except urllib2.URLError:
        print 'Unable to communicate. Check information and try again.'
        return
    keyring.set_password(args.baseuri, args.username, password)
    save_info(args.baseuri, args.username)
    print 'You are now logged in.'
dataset/ETHPy150Open jakebasile/reap/reap/commands/basic.py/login