Skip to content

Commit

Permalink
Merge pull request #40 from lionick/additional_check
Browse files Browse the repository at this point in the history
check if voPerson exists
  • Loading branch information
NicolasLiampotis authored Nov 17, 2023
2 parents dd57d18 + 499ea41 commit 8f0dc12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/ingester/loginsIngester.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def ingestLoginDataPerTenenv(cls, tenenv, session):

for login in loginsNotMapped:

if (login[0]['voPersonId'] in hashed_user_ids):
if ('voPersonId' in login[0] and login[0]['voPersonId'] in hashed_user_ids):
cls.logger.info("""Ignore this user with
hash {0} as he is at the blacklist""". format(login[0]['voPersonId']))
continue
Expand Down

0 comments on commit 8f0dc12

Please sign in to comment.