Commit 969972ca authored by Vincent Pelletier's avatar Vincent Pelletier

Person: Do not hide import errors on ERP5Security.

Only PluggableAuthService import may not be importable, and is decisive
in importing from ERP5Security, which must then work.
parent 9ec2259e
......@@ -39,10 +39,11 @@ from Products.DCWorkflow.DCWorkflow import ValidationFailed
try:
from Products import PluggableAuthService
from Products.ERP5Security.ERP5UserManager import ERP5UserManager
from Products.ERP5Security.ERP5LoginUserManager import ERP5LoginUserManager
except ImportError:
PluggableAuthService = None
else:
from Products.ERP5Security.ERP5UserManager import ERP5UserManager
from Products.ERP5Security.ERP5LoginUserManager import ERP5LoginUserManager
class UserExistsError(ValidationFailed):
def __init__(self, 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