Modified client's retrieving method on creating a new contact

This commit is contained in:
Fanilo-Nantenaina 2025-12-28 21:34:13 +03:00
parent 18699a8673
commit 8859152379

2
api.py
View file

@ -5996,7 +5996,7 @@ async def get_document_pdf(
async def creer_contact(numero: str, contact: ContactCreate): async def creer_contact(numero: str, contact: ContactCreate):
try: try:
try: try:
sage_client.obtenir_client(numero) sage_client.lire_client(numero)
except: except:
raise HTTPException(404, f"Client {numero} non trouvé") raise HTTPException(404, f"Client {numero} non trouvé")