Commit 9e322323 authored by BaiJiangJie's avatar BaiJiangJie

[Update] LDAP 分页获取 cookie 取值添加异常捕获

parent 6951f4dd
......@@ -89,8 +89,12 @@ class LDAPServerUtil(object):
def paged_cookie(self):
if self._paged_size is None:
return None
cookie = self.connection.result['controls']['1.2.840.113556.1.4.319']['value']['cookie']
return cookie
try:
cookie = self.connection.result['controls']['1.2.840.113556.1.4.319']['value']['cookie']
return cookie
except Exception as e:
logger.error(e)
return None
def get_search_filter_extra(self):
extra = ''
......
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