Skip to content

Commit

Permalink
Check if voPersonId exists at the record (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
lionick authored May 20, 2024
1 parent 46295b4 commit ad8a586
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/ingester/usersIngester.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ def ingestUserDataPerTenenv(cls, tenenv, session):
cls.logger.error("""
user status '{0}' is not valid """.format(user[0]['status']))
continue
if ('voPersonId' not in user[0]):
cls.logger.warning("""voPersonId not found at record. Ignoring...""")
continue
if (user[0]['voPersonId'] in hashed_user_ids):
cls.logger.info("""Ignore this user with
hash {0} as he is at the blacklist""". format(user[0]['voPersonId']))
Expand Down

0 comments on commit ad8a586

Please sign in to comment.