mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-07-03 19:11:28 +00:00
ubuntu-build: use correct exception from LP login failure
This commit is contained in:
parent
ad402231db
commit
7d278cde21
@ -30,6 +30,7 @@ from ubuntutools.lp.udtexceptions import (SeriesNotFoundException,
|
|||||||
PackageNotFoundException,
|
PackageNotFoundException,
|
||||||
PocketDoesNotExistError,)
|
PocketDoesNotExistError,)
|
||||||
from ubuntutools.lp.lpapicache import Distribution, PersonTeam
|
from ubuntutools.lp.lpapicache import Distribution, PersonTeam
|
||||||
|
from launchpadlib.credentials import TokenAuthorizationException
|
||||||
from ubuntutools.misc import split_release_pocket
|
from ubuntutools.misc import split_release_pocket
|
||||||
|
|
||||||
from ubuntutools import getLogger
|
from ubuntutools import getLogger
|
||||||
@ -138,7 +139,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
# Will fail here if we have no credentials, bail out
|
# Will fail here if we have no credentials, bail out
|
||||||
Launchpad.login()
|
Launchpad.login()
|
||||||
except IOError:
|
except TokenAuthorizationException:
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
# Get the ubuntu archive
|
# Get the ubuntu archive
|
||||||
|
Loading…
x
Reference in New Issue
Block a user