diff --git a/server/backend/api/contragents.py b/server/backend/api/contragents.py index aab6421..35e5e68 100644 --- a/server/backend/api/contragents.py +++ b/server/backend/api/contragents.py @@ -1,5 +1,4 @@ import requests -from requests.auth import HTTPBasicAuth import xml.etree.ElementTree as ET from base64 import b64encode from server.backend.schemas.pydantic import settings @@ -44,7 +43,7 @@ def parse_contragents(xml: str): df = pd.DataFrame(rows) return df except ET.ParseError: - return "Error during the parsing process" + raise xml_data = fetch_contragents() root = parse_contragents(xml_data) print(root) \ No newline at end of file