fix detail

This commit is contained in:
dderbentsov
2023-08-08 00:29:01 +03:00
parent 7075db3b49
commit 8cc5555c70

View File

@@ -36,7 +36,7 @@ class MedicalCardService(BaseService[models.MedicalCard, MedicalCardCreateIn, An
def get_person(self, id: UUID4) -> PersonOut: def get_person(self, id: UUID4) -> PersonOut:
try: try:
response = httpx.get(f'{self.PERSONAL_INFO_URL}/{id}') response = httpx.get(f'{self.PERSONAL_INFO_URL}/persons/{id}')
response.raise_for_status() response.raise_for_status()
except httpx.RequestError as exc: except httpx.RequestError as exc:
print(f"Ошибка вызова {exc.request.url!r}.") print(f"Ошибка вызова {exc.request.url!r}.")