From d9c54cd83e8c676e34497fa135786a626d5d1fc7 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 13 Aug 2009 09:27:13 -0400 Subject: Clean up additional issues discovered with pylint and pychecker --- ipalib/errors.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'ipalib/errors.py') diff --git a/ipalib/errors.py b/ipalib/errors.py index caecdc382..2edefa746 100644 --- a/ipalib/errors.py +++ b/ipalib/errors.py @@ -1008,6 +1008,22 @@ class SameGroupError(ExecutionError): errno = 4017 format = _('A group may not be added as a member of itself') +class DefaultGroupError(ExecutionError): + """ + **4018** Raised when removing the default user group + + For example: + + >>> raise DefaultGroupError() + Traceback (most recent call last): + ... + DefaultGroupError: The default users group cannot be removed + + """ + + errno = 4018 + format = _('The default users group cannot be removed') + class BuiltinError(ExecutionError): """ **4100** Base class for builtin execution errors (*4100 - 4199*). -- cgit