mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Fix error message which can make crazy
This commit is contained in:
parent
e0f2061852
commit
8bdb79cfba
1 changed files with 2 additions and 2 deletions
|
@ -291,9 +291,9 @@ def init_authenticator((vendor, name), kwargs={}):
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
mod = import_module('moulinette.authenticators.%s' % vendor)
|
mod = import_module('moulinette.authenticators.%s' % vendor)
|
||||||
except ImportError:
|
except ImportError as e:
|
||||||
# TODO: List available authenticators vendors
|
# TODO: List available authenticators vendors
|
||||||
raise MoulinetteError(errno.EINVAL, _("Unknown authenticator vendor '%s'" % vendor))
|
raise MoulinetteError(errno.EINVAL, _("Unable to load authenticator vendor '%s': %s") % (vendor, str(e)))
|
||||||
else:
|
else:
|
||||||
return mod.Authenticator(name, **kwargs)
|
return mod.Authenticator(name, **kwargs)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue