Commit 88ee0cb9 authored by Jérome Perrin's avatar Jérome Perrin

base: remove a pylint workaround that is no longer necessary

ValidationFailed is now a "real" class from Products.ERP5Type.Core.Workflow
parent f11aa97f
...@@ -50,14 +50,7 @@ else: ...@@ -50,14 +50,7 @@ else:
from Products.ERP5Security.ERP5LoginUserManager import ERP5LoginUserManager from Products.ERP5Security.ERP5LoginUserManager import ERP5LoginUserManager
class UserExistsError( class UserExistsError(ValidationFailed):
ValidationFailed,
# to workaround pylint's false positive:
# Exception doesn't inherit from standard "Exception" class (nonstandard-exception)
# because it cannot import ValidationFailed (which is set by a monkey patch), we also
# inherit from Exception.
Exception,
):
def __init__(self, user_id): def __init__(self, user_id):
super(UserExistsError, self).__init__('user id %s already exists' % (user_id, )) super(UserExistsError, self).__init__('user id %s already exists' % (user_id, ))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment