diff options
author | Rob Crittenden <rcritten@redhat.com> | 2009-08-11 17:08:09 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-08-12 13:18:15 -0400 |
commit | 8780751330871033b13fc8fbb7eb0588baf4417d (patch) | |
tree | 0b21cac0974b193c67c43e22fb7b21983766fbf8 /ipalib/errors.py | |
parent | c781e8a57d3d05fa07729dbccff07bc1fab9d8e8 (diff) | |
download | freeipa-8780751330871033b13fc8fbb7eb0588baf4417d.tar.gz freeipa-8780751330871033b13fc8fbb7eb0588baf4417d.tar.xz freeipa-8780751330871033b13fc8fbb7eb0588baf4417d.zip |
Clean up some problems discovered with pylint and pychecker
Much of this is formatting to make pylint happy but it also fixes some
real bugs.
Diffstat (limited to 'ipalib/errors.py')
-rw-r--r-- | ipalib/errors.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ipalib/errors.py b/ipalib/errors.py index 82905b39..caecdc38 100644 --- a/ipalib/errors.py +++ b/ipalib/errors.py @@ -992,6 +992,22 @@ class RemoteRetrieveError(ExecutionError): errno = 4016 format = _('%(reason)s') +class SameGroupError(ExecutionError): + """ + **4017** Raised when adding a group as a member of itself + + For example: + + >>> raise SameGroupError() + Traceback (most recent call last): + ... + SameGroupError: A group may not be added as a member of itself + + """ + + errno = 4017 + format = _('A group may not be added as a member of itself') + class BuiltinError(ExecutionError): """ **4100** Base class for builtin execution errors (*4100 - 4199*). |