Skip to content

Commit

Permalink
Merge branch 'beta' into issues/716
Browse files Browse the repository at this point in the history
  • Loading branch information
chambridge committed Feb 14, 2018
2 parents 038f995 + 0bfed57 commit d02a3c0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions qpc/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,12 @@ def main(self):
log.error(_(messages.SERVER_CONFIG_REQUIRED))
log.error('$ qpc server config --host HOST --port PORT')
sys.exit(1)
# ...and sure we are logged in
if not read_client_token():
log.error(_(messages.SERVER_LOGIN_REQUIRED))
log.error('$ qpc server login')
sys.exit(1)

if (self.args.subcommand != server.SUBCOMMAND and
not read_client_token()):
log.error(_(messages.SERVER_LOGIN_REQUIRED))
log.error('$ qpc server login')
sys.exit(1)

if self.args.subcommand in self.subcommands:
subcommand = self.subcommands[self.args.subcommand]
Expand Down

0 comments on commit d02a3c0

Please sign in to comment.