ubuntutools/lp/udtexceptions.py: Rename PocketDoesNotExistException to PocketDoesNotExistError.

This commit is contained in:
Michael Bienia 2010-03-20 19:27:40 +01:00
parent 8f7d07e6bc
commit 5babcfe869
3 changed files with 3 additions and 4 deletions

View File

@ -260,7 +260,7 @@ class Archive(BaseWrapper):
'''
# Check if pocket has a valid value
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)
# Check if series is already a DistoSeries object or not

View File

@ -6,8 +6,8 @@ class SeriesNotFoundException(BaseException):
""" Thrown when a distroseries is not found """
pass
class PocketDoesNotExistException(BaseException):
""" Thrown when a invalid pocket is passed """
class PocketDoesNotExistError(Exception):
'''Raised when a invalid pocket is used.'''
pass
class ArchiveNotFoundException(BaseException):

View File

@ -22,7 +22,6 @@
from ubuntutools.requestsync.common import raw_input_exit_on_ctrlc
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
def getDebianSrcPkg(name, release):