mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-16 01:21:07 +00:00
ubuntutools/lp/lpapicache.py: Also specify the LP API version to use when
using anonymous login.
This commit is contained in:
parent
cc8ec956b0
commit
dfc59c0558
@ -63,7 +63,8 @@ class Launchpad(object):
|
|||||||
def login_anonymously(self):
|
def login_anonymously(self):
|
||||||
'''Enforce an anonymous login.'''
|
'''Enforce an anonymous login.'''
|
||||||
if '_Launchpad__lp' not in self.__dict__:
|
if '_Launchpad__lp' not in self.__dict__:
|
||||||
self.__lp = launchpad.Launchpad.login_anonymously('ubuntu-dev-tools', service)
|
self.__lp = launchpad.Launchpad.login_anonymously('ubuntu-dev-tools',
|
||||||
|
service_root=service, version=api_version)
|
||||||
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