mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-04-19 22:31:07 +00:00
Log syncpackage LP auth errors before halting
This commit is contained in:
parent
9a4cc312f4
commit
6bc59d789e
3
debian/changelog
vendored
3
debian/changelog
vendored
@ -2,6 +2,9 @@ ubuntu-dev-tools (0.200) UNRELEASED; urgency=medium
|
||||
|
||||
* Add support to see currently running autopkgtests (running-autopkgtests)
|
||||
|
||||
[ Athos Ribeiro ]
|
||||
* syncpackage: log LP authentication errors before halting.
|
||||
|
||||
-- Chris Peterson <chris.peterson@canonical.com> Wed, 14 Feb 2024 14:58:30 -0800
|
||||
|
||||
ubuntu-dev-tools (0.199) unstable; urgency=medium
|
||||
|
@ -652,14 +652,15 @@ def main():
|
||||
if args.lpinstance is None:
|
||||
args.lpinstance = config.get_value("LPINSTANCE")
|
||||
|
||||
# devel for copyPackage and changelogUrl
|
||||
kwargs = {"service": args.lpinstance, "api_version": "devel"}
|
||||
try:
|
||||
# devel for copyPackage and changelogUrl
|
||||
kwargs = {"service": args.lpinstance, "api_version": "devel"}
|
||||
if args.lp and not args.simulate:
|
||||
Launchpad.login(**kwargs)
|
||||
else:
|
||||
Launchpad.login_anonymously(**kwargs)
|
||||
except IOError:
|
||||
except IOError as e:
|
||||
Logger.error("Could not authenticate to LP: %s", str(e))
|
||||
sys.exit(1)
|
||||
|
||||
if args.release is None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user