More release preparation. Docstrings and consistency work.
[python-collate.git] / collate / errors.py
index ca8eec7..13a1e12 100644 (file)
@@ -1,6 +1,6 @@
 """Exception types for the collate module."""
 
 """Exception types for the collate module."""
 
-class InvalidLocaleError(ValueError):
+class InvalidLocaleError(LookupError):
     """Raised when an invalid locale is given to a function.
 
     Attributes:
     """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
     """
     def __init__(self, locale, string=""):
         self.locale = locale
-        ValueError.__init__(self, string or locale)
+        LookupError.__init__(self, string or locale)