mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-18 04:11:29 +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)
|
* 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
|
-- Chris Peterson <chris.peterson@canonical.com> Wed, 14 Feb 2024 14:58:30 -0800
|
||||||
|
|
||||||
ubuntu-dev-tools (0.199) unstable; urgency=medium
|
ubuntu-dev-tools (0.199) unstable; urgency=medium
|
||||||
|
@ -652,14 +652,15 @@ def main():
|
|||||||
if args.lpinstance is None:
|
if args.lpinstance is None:
|
||||||
args.lpinstance = config.get_value("LPINSTANCE")
|
args.lpinstance = config.get_value("LPINSTANCE")
|
||||||
|
|
||||||
try:
|
|
||||||
# devel for copyPackage and changelogUrl
|
# devel for copyPackage and changelogUrl
|
||||||
kwargs = {"service": args.lpinstance, "api_version": "devel"}
|
kwargs = {"service": args.lpinstance, "api_version": "devel"}
|
||||||
|
try:
|
||||||
if args.lp and not args.simulate:
|
if args.lp and not args.simulate:
|
||||||
Launchpad.login(**kwargs)
|
Launchpad.login(**kwargs)
|
||||||
else:
|
else:
|
||||||
Launchpad.login_anonymously(**kwargs)
|
Launchpad.login_anonymously(**kwargs)
|
||||||
except IOError:
|
except IOError as e:
|
||||||
|
Logger.error("Could not authenticate to LP: %s", str(e))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
if args.release is None:
|
if args.release is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user