This commit is contained in:
2025-12-24 20:16:53 +03:00
parent 1e5492b7b6
commit 4ed850fb10

View File

@@ -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)