Skip to content

Commit

Permalink
remove active directory lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
JLoveUOA committed Jun 4, 2024
1 parent 7f9c86d commit 6737d38
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mt_api/apiconfigs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down Expand Up @@ -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])

Expand Down

0 comments on commit 6737d38

Please sign in to comment.