Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 7, 2023
1 parent fc2d5bf commit 72f1448
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/background_processes/colombia_data_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,13 @@ def get_email(documento_proveedor, entry) -> str:
email = remote_email.get("correo_entidad", "")

if len_borrower_response_email_json > 1:
email = Counter(borrower_email['correo_entidad']
for borrower_email in borrower_response_email_json).most_common(1)[0][0]
email = Counter(
borrower_email["correo_entidad"]
for borrower_email in borrower_response_email_json
).most_common(1)[0][0]

if not background_utils.is_valid_email(email):
raise SkippedAwardError(
f"Invalid borrower email ({email=} {entry=})"
)
raise SkippedAwardError(f"Invalid borrower email ({email=} {entry=})")

return email

Expand Down

0 comments on commit 72f1448

Please sign in to comment.