mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
* udtexceptions.py
- Rename PocketDoesNotExist to PocketDoesNotExistException to be in line with the naming of the other exceptions.
This commit is contained in:
parent
d062a2f8a6
commit
3bcda69839
@ -322,7 +322,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 PocketDoesNotExist("Pocket '%s' does not exist." % pocket)
|
raise PocketDoesNotExistException("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,7 +6,7 @@ class SeriesNotFoundException(BaseException):
|
|||||||
""" Thrown when a distroseries is not found """
|
""" Thrown when a distroseries is not found """
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class PocketDoesNotExist(BaseException):
|
class PocketDoesNotExistException(BaseException):
|
||||||
""" Thrown when a invalid pocket is passed """
|
""" Thrown when a invalid pocket is passed """
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user