From 5c07d978659b3f91441a42295531539a1ae8eacc Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 9 Oct 2008 01:43:23 -0400 Subject: Slight change to how exceptions are handled --- ipalib/errors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipalib') diff --git a/ipalib/errors.py b/ipalib/errors.py index c00db9dc6..d0d917f6b 100644 --- a/ipalib/errors.py +++ b/ipalib/errors.py @@ -266,7 +266,7 @@ class NotFound(GenericError): """Entry not found""" faultCode = 1003 -class Duplicate(GenericError): +class DuplicateEntry(GenericError): """This entry already exists""" faultCode = 1004 @@ -349,7 +349,7 @@ def convertFault(fault): return fault for v in globals().values(): if type(v) == type(Exception) and issubclass(v,GenericError) and \ - code == getattr(v,'faultCode',None): + code == getattr(v,'faultCode',None): ret = v(fault.faultString) ret.fromFault = True return ret -- cgit