file_multi_part[2],
)
- response = httpx.post(url_merge, files=pdf_collection)
+ response = httpx.post(url_merge, files=pdf_collection, timeout=30.0)
response.raise_for_status() # ensure we notice bad responses
archive_path.write_bytes(response.content)
files=files,
headers=headers,
data=data,
+ timeout=30.0,
)
response.raise_for_status() # ensure we notice bad responses
except Exception as err:
file_multi_part[2],
)
- response = httpx.post(
- url,
- files=files,
- data=data,
- )
+ response = httpx.post(url, files=files, data=data, timeout=30.0)
response.raise_for_status() # ensure we notice bad responses
except Exception as err:
raise ParseError(f"Error while converting document to PDF: {err}") from err
data["pdfFormat"] = "PDF/A-3b"
try:
- response = httpx.post(url, files=files, headers=headers, data=data)
+ response = httpx.post(
+ url,
+ files=files,
+ headers=headers,
+ data=data,
+ timeout=30.0,
+ )
response.raise_for_status() # ensure we notice bad responses
except Exception as err:
raise ParseError(