Skip to content

Commit

Permalink
Merge pull request #829 from Nazarii/fix_referral_attributes
Browse files Browse the repository at this point in the history
Fixed referral attributes.
  • Loading branch information
cannatag committed Jul 6, 2020
2 parents 6663d15 + 9965bd6 commit e64a713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ldap3/utils/uri.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def parse_uri(uri):
else:
uri_components['port'] = int(uri_components['port'])

uri_components['attributes'] = parts[1].split(',') if len(parts) > 1 else None
uri_components['attributes'] = parts[1].split(',') if len(parts) > 1 and parts[1] else None
uri_components['scope'] = parts[2] if len(parts) > 2 else None
if uri_components['scope'] == 'base':
uri_components['scope'] = BASE
Expand Down

0 comments on commit e64a713

Please sign in to comment.