Skip to content

Commit

Permalink
Handle s_temp==None
Browse files Browse the repository at this point in the history
  • Loading branch information
stroeder committed Aug 8, 2015
1 parent 983bf24 commit b1ee70b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/ldap/schema/subentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
See http://www.python-ldap.org/ for details.
\$Id: subentry.py,v 1.35 2015/06/06 09:21:38 stroeder Exp $
\$Id: subentry.py,v 1.36 2015/08/08 14:13:30 stroeder Exp $
"""

import ldap.cidict,ldap.schema
Expand Down Expand Up @@ -483,6 +483,7 @@ def urlfetch(uri,trace_level=0):
subschemasubentry_dn,s_temp = ldif_parser.all_records[0]
# Work-around for mixed-cased attribute names
subschemasubentry_entry = ldap.cidict.cidict()
s_temp = s_temp or {}
for at,av in s_temp.items():
if at in SCHEMA_CLASS_MAPPING:
try:
Expand Down

0 comments on commit b1ee70b

Please sign in to comment.