InvalidLocaleError is more a LookupError than a ValueError.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Mon, 22 Feb 2010 11:21:19 +0000 (03:21 -0800)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Mon, 22 Feb 2010 11:21:19 +0000 (03:21 -0800)
collate/errors.py

index ca8eec7..a425087 100644 (file)
@@ -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: