From 6737d388fe8f4e149a24b72f63e1651db8ddbe74 Mon Sep 17 00:00:00 2001 From: James Love Date: Tue, 4 Jun 2024 15:51:30 +1200 Subject: [PATCH] remove active directory lookup --- src/mt_api/apiconfigs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mt_api/apiconfigs.py b/src/mt_api/apiconfigs.py index 03eb2df..c1016cd 100644 --- a/src/mt_api/apiconfigs.py +++ b/src/mt_api/apiconfigs.py @@ -16,6 +16,7 @@ from requests.models import PreparedRequest from src.mt_api.api_consts import CONNECTION__HOSTNAME + from .mt_consts import UOA logger = logging.getLogger(__name__) @@ -226,7 +227,9 @@ def create_person_object(self, upi: str) -> Person: else email ) except RequestException as e: - logger.error("bad API response getting person data for %s: %s", upi, e) + logger.error( + "bad API response getting person data for %s. Error: %s.", upi, e + ) return Person(name=name, email=email, affiliation=UOA, identifiers=[upi])