summaryrefslogtreecommitdiffstats
path: root/ipalib/errors.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-10-09 01:43:23 -0400
committerRob Crittenden <rcritten@redhat.com>2008-10-10 03:36:57 -0400
commit5c07d978659b3f91441a42295531539a1ae8eacc (patch)
treeaef1f9831f2627b8186699e6c2ae9ec6c83418c1 /ipalib/errors.py
parent83bb41faebc0a61269f2869e9123166254fff5b3 (diff)
downloadfreeipa-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.py4
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