mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 23:51:08 +00:00
lpapicache: remove try-except around login that only logs the error and then re-raises
This commit is contained in:
parent
06a04f642f
commit
9c1561ff26
@ -74,12 +74,8 @@ class _Launchpad(object):
|
|||||||
def login(self, service=service, api_version=api_version):
|
def login(self, service=service, api_version=api_version):
|
||||||
'''Enforce a non-anonymous login.'''
|
'''Enforce a non-anonymous login.'''
|
||||||
if not self.logged_in:
|
if not self.logged_in:
|
||||||
try:
|
self.__lp = LP.login_with('ubuntu-dev-tools', service,
|
||||||
self.__lp = LP.login_with('ubuntu-dev-tools', service,
|
version=api_version)
|
||||||
version=api_version)
|
|
||||||
except IOError as error:
|
|
||||||
Logger.error(str(error))
|
|
||||||
raise
|
|
||||||
else:
|
else:
|
||||||
raise AlreadyLoggedInError('Already logged in to Launchpad.')
|
raise AlreadyLoggedInError('Already logged in to Launchpad.')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user