From ccc252965d3ad9fe31abb3a08ef50451fe02ccef Mon Sep 17 00:00:00 2001 From: kakwa Date: Wed, 6 Feb 2019 23:04:23 +0100 Subject: [PATCH] fix another __import__ --- ldapcherry/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldapcherry/__init__.py b/ldapcherry/__init__.py index 33b2063..2a6a15a 100644 --- a/ldapcherry/__init__.py +++ b/ldapcherry/__init__.py @@ -243,7 +243,7 @@ class LdapCherry(object): elif self.auth_mode == 'custom': # load custom auth module auth_module = self._get_param('auth', 'auth.module', config) - auth = __import__(auth_module, globals(), locals(), ['Auth'], -1) + auth = __import__(auth_module, globals(), locals(), ['Auth'], 0) self.auth = auth.Auth(config['auth'], cherrypy.log) else: raise WrongParamValue(