mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-16 01:21:07 +00:00
ubuntutools/lp/udtexceptions.py: Rename PocketDoesNotExistException to PocketDoesNotExistError.
This commit is contained in:
parent
8f7d07e6bc
commit
5babcfe869
@ -260,7 +260,7 @@ class Archive(BaseWrapper):
|
|||||||
'''
|
'''
|
||||||
# Check if pocket has a valid value
|
# Check if pocket has a valid value
|
||||||
if pocket not in ('Release', 'Security', 'Updates', 'Proposed', 'Backports'):
|
if pocket not in ('Release', 'Security', 'Updates', 'Proposed', 'Backports'):
|
||||||
raise PocketDoesNotExistException("Pocket '%s' does not exist." % pocket)
|
raise PocketDoesNotExistError("Pocket '%s' does not exist." % pocket)
|
||||||
|
|
||||||
dist = Distribution(self.distribution_link)
|
dist = Distribution(self.distribution_link)
|
||||||
# Check if series is already a DistoSeries object or not
|
# Check if series is already a DistoSeries object or not
|
||||||
|
@ -6,8 +6,8 @@ class SeriesNotFoundException(BaseException):
|
|||||||
""" Thrown when a distroseries is not found """
|
""" Thrown when a distroseries is not found """
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class PocketDoesNotExistException(BaseException):
|
class PocketDoesNotExistError(Exception):
|
||||||
""" Thrown when a invalid pocket is passed """
|
'''Raised when a invalid pocket is used.'''
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class ArchiveNotFoundException(BaseException):
|
class ArchiveNotFoundException(BaseException):
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
from ubuntutools.requestsync.common import raw_input_exit_on_ctrlc
|
from ubuntutools.requestsync.common import raw_input_exit_on_ctrlc
|
||||||
from ubuntutools.lp.lpapicache import Launchpad, Distribution, PersonTeam, DistributionSourcePackage
|
from ubuntutools.lp.lpapicache import Launchpad, Distribution, PersonTeam, DistributionSourcePackage
|
||||||
from ubuntutools.lp.udtexceptions import PackageNotFoundException, SeriesNotFoundException, PocketDoesNotExistException, ArchiveNotFoundException
|
|
||||||
from ubuntutools.lp.libsupport import translate_api_web
|
from ubuntutools.lp.libsupport import translate_api_web
|
||||||
|
|
||||||
def getDebianSrcPkg(name, release):
|
def getDebianSrcPkg(name, release):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user