diff options
author | Rob Crittenden <rcritten@redhat.com> | 2008-10-09 01:43:23 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2008-10-10 03:36:57 -0400 |
commit | 5c07d978659b3f91441a42295531539a1ae8eacc (patch) | |
tree | aef1f9831f2627b8186699e6c2ae9ec6c83418c1 /ipalib/errors.py | |
parent | 83bb41faebc0a61269f2869e9123166254fff5b3 (diff) | |
download | freeipa-5c07d978659b3f91441a42295531539a1ae8eacc.tar.gz freeipa-5c07d978659b3f91441a42295531539a1ae8eacc.tar.xz freeipa-5c07d978659b3f91441a42295531539a1ae8eacc.zip |
Slight change to how exceptions are handled
Diffstat (limited to 'ipalib/errors.py')
-rw-r--r-- | ipalib/errors.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/errors.py b/ipalib/errors.py index c00db9dc..d0d917f6 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 |