UCL-ARC / dirac-swift-api

Repository for the REST API side of the DiRAC-SWIFT project
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

Better handling of missing pydantic fields for Virgo DB authentication #16

Closed harryjmoss closed 1 year ago

harryjmoss commented 1 year ago

Currently we get an internal server error when one or more fields are missing from environment variables or the .env file (pydantic prefers env variables).

Let's handle this in a neater way and return a useful error message to the user via the API.