Skip to content

Commit 95c2e73

Browse files
eli-540 log corrected
1 parent 7a3c133 commit 95c2e73

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/eligibility_signposting_api/repos/person_repo.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ def get_eligibility_data(self, nhs_number: NHSNumber) -> Person:
6060
nhs_hashed_with_current = self._hashing_service.hash_with_current_secret(nhs_number)
6161
if nhs_hashed_with_current:
6262
items = self.get_person_record(nhs_hashed_with_current)
63-
if not items:
64-
logger.warning("The AWSCURRENT secret was tried, but no person record was found")
63+
if not items:
64+
logger.warning("The AWSCURRENT secret was tried, but no person record was found")
6565

66+
if not items:
6667
# Hash using AWSPREVIOUS secret and fetch items
6768
nhs_hashed_with_previous = self._hashing_service.hash_with_previous_secret(nhs_number)
6869
if nhs_hashed_with_previous:

0 commit comments

Comments
 (0)