Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
cannatag committed Jul 6, 2020
2 parents a3c2251 + e64a713 commit aa5e566
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 aa5e566

Please sign in to comment.