Fix errors running `rbt login` without a server specified.

Review Request #8154 — Created May 11, 2016 and submitted

Information

RBTools
release-0.7.x
301b568...

Reviewers

The rbt login command doesn't pass in a tool when looking for a server, which
meant that if a server wasn't specified via the command-line or the config
file, users would get an ugly traceback. This change checks to make sure that
tool is not None before calling methods on it, which results in a nice error
message.

Ran rbt login outside of a repository with no server specified. Saw the error.

reviewbot
  1. Tool: PEP8 Style Checker
    Processed Files:
        rbtools/commands/__init__.py
    
    
    
    Tool: Pyflakes
    Processed Files:
        rbtools/commands/__init__.py
    
    
  2. 
      
brennie
  1. Ship It!
  2. 
      
david
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-0.7.x (4dff320)
Loading...