From 91ed02bf5ec83aa3b1bf2af232d9e59fa3ee521b Mon Sep 17 00:00:00 2001 From: Mike Dirolf Date: Fri, 16 Jan 2009 14:51:47 -0500 Subject: [PATCH] just one exception for bad names --- errors.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/errors.py b/errors.py index dfe6b22ed..2e80ecfa9 100644 --- a/errors.py +++ b/errors.py @@ -12,12 +12,8 @@ class InvalidOperation(Exception): """Raised when a client attempts to perform an invalid operation. """ -class InvalidDatabaseName(ValueError): - """Raised when an invalid database name is used. - """ - -class InvalidCollectionName(ValueError): - """Raised when an invalid collection name is used. +class InvalidName(ValueError): + """Raised when an invalid name is used. """ class InvalidBSON(ValueError):