|
|
@ -314,7 +314,7 @@ def import_ldap_users():
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
new_users = services.ldap.get_group_members(config.config_ldap_group_name)
|
|
|
|
new_users = services.ldap.get_group_members(config.config_ldap_group_name)
|
|
|
|
except (services.ldap.LDAPException, TypeError, AttributeError, KeyError) as e:
|
|
|
|
except (services.ldap.LDAPException, TypeError, AttributeError, KeyError) as e:
|
|
|
|
log.debug(e)
|
|
|
|
log.exception(e)
|
|
|
|
showtext['text'] = _(u'Error: %(ldaperror)s', ldaperror=e)
|
|
|
|
showtext['text'] = _(u'Error: %(ldaperror)s', ldaperror=e)
|
|
|
|
return json.dumps(showtext)
|
|
|
|
return json.dumps(showtext)
|
|
|
|
if not new_users:
|
|
|
|
if not new_users:
|
|
|
|