Fix errors running `rbt login` without a server specified.
Review Request #8154 — Created May 11, 2016 and submitted
The
rbt logincommand 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 notNonebefore calling methods on it, which results in a nice error
message.
Ran
rbt loginoutside of a repository with no server specified. Saw the error.
Tool: PEP8 Style Checker Processed Files: rbtools/commands/__init__.py Tool: Pyflakes Processed Files: rbtools/commands/__init__.py