From 3bcda69839425ba8f9c6a91615381c9477687f1c Mon Sep 17 00:00:00 2001 From: Michael Bienia Date: Thu, 23 Jul 2009 14:21:42 +0200 Subject: [PATCH] * udtexceptions.py - Rename PocketDoesNotExist to PocketDoesNotExistException to be in line with the naming of the other exceptions. --- ubuntutools/lp/lpapiwrapper.py | 2 +- ubuntutools/lp/udtexceptions.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ubuntutools/lp/lpapiwrapper.py b/ubuntutools/lp/lpapiwrapper.py index f6e4a78..dfec6bb 100644 --- a/ubuntutools/lp/lpapiwrapper.py +++ b/ubuntutools/lp/lpapiwrapper.py @@ -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 diff --git a/ubuntutools/lp/udtexceptions.py b/ubuntutools/lp/udtexceptions.py index 30b6c25..5864d09 100644 --- a/ubuntutools/lp/udtexceptions.py +++ b/ubuntutools/lp/udtexceptions.py @@ -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