Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
Fix another flake8 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
temparus committed Nov 18, 2023
1 parent b056324 commit 1a52cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amivapi/ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def _process_data(data):
res = {'nethz': data.get('cn', [None])[0],
'firstname': data.get('givenName', [None])[0],
'lastname': data.get('sn', [None])[0]}
if ('swissEduPersonMatriculationNumber' in data and \
if ('swissEduPersonMatriculationNumber' in data and
isinstance(data['swissEduPersonMatriculationNumber'], str)):
# add legi only if the LDAP value is a string as it might also be an
# empty array.
Expand Down

0 comments on commit 1a52cd1

Please sign in to comment.