X-Git-Url: https://git.korewanetadesu.com/?p=python-collate.git;a=blobdiff_plain;f=collate%2Ferrors.py;h=13a1e1293a55c32f98fa012ba81b91ea5f85942d;hp=ca8eec7c58c598a908da2cec889272c632f44884;hb=e8b221311bf60883d3f14083bab63fd947d34509;hpb=7644110ce07ec8a78003ee7db9dcdfe5cbca3854 diff --git a/collate/errors.py b/collate/errors.py index ca8eec7..13a1e12 100644 --- a/collate/errors.py +++ b/collate/errors.py @@ -1,6 +1,6 @@ """Exception types for the collate module.""" -class InvalidLocaleError(ValueError): +class InvalidLocaleError(LookupError): """Raised when an invalid locale is given to a function. Attributes: @@ -8,4 +8,4 @@ class InvalidLocaleError(ValueError): """ def __init__(self, locale, string=""): self.locale = locale - ValueError.__init__(self, string or locale) + LookupError.__init__(self, string or locale)