From 8bdb79cfba9997c37908017e871a3140f72347fd Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 May 2014 01:40:52 +0200 Subject: [PATCH] Fix error message which can make crazy --- moulinette/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moulinette/core.py b/moulinette/core.py index 573e806f..6ced832a 100644 --- a/moulinette/core.py +++ b/moulinette/core.py @@ -291,9 +291,9 @@ def init_authenticator((vendor, name), kwargs={}): """ try: mod = import_module('moulinette.authenticators.%s' % vendor) - except ImportError: + except ImportError as e: # 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: return mod.Authenticator(name, **kwargs)