We're updating the issue view to help you get more done.Learn more

Failure on login gives an ugly error message

syn.login('chris.bare') when you don't have a api-key cached gives an ugly error message. We should not be advised to first login when login fails. We might want fail better before getting the userProfile,

/usr/local/lib/python2.7/dist-packages/synapseclient/client.pyc in login(self, email, password, apiKey, sessionToken, rememberMe, silent)
346
347 if not silent:
--> 348 profile = self.getUserProfile(refresh=True)
349 sys.stdout.write("Welcome, %s!\n" % (profile'displayName' if 'displayName' in profile else self.username))
350

.
.
.
SynapseAuthenticationError: Please login

Status

Assignee

Chris Bare

Reporter

Larsson Omberg

Validator

Larsson Omberg

Components

Fix versions

Priority

Minor