* udtexceptions.py

- Rename PocketDoesNotExist to PocketDoesNotExistException to be in line with
    the naming of the other exceptions.
This commit is contained in:
Michael Bienia 2009-07-23 14:21:42 +02:00
parent d062a2f8a6
commit 3bcda69839
2 changed files with 2 additions and 2 deletions

View File

@ -322,7 +322,7 @@ class Archive(BaseWrapper):
'''
# Check if pocket has a valid value
if pocket not in ('Release', 'Security', 'Updates', 'Proposed', 'Backports'):
raise PocketDoesNotExist("Pocket '%s' does not exist." % pocket)
raise PocketDoesNotExistException("Pocket '%s' does not exist." % pocket)
dist = Distribution(self.distribution_link)
# Check if series is already a DistoSeries object or not

View File

@ -6,7 +6,7 @@ class SeriesNotFoundException(BaseException):
""" Thrown when a distroseries is not found """
pass
class PocketDoesNotExist(BaseException):
class PocketDoesNotExistException(BaseException):
""" Thrown when a invalid pocket is passed """
pass