Skip to content

♻️ fix invalid catch mechanism for polling #309

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/extras/guide/expense_receipts_v5.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ Aside from the basic `BaseField` attributes, the tax field `TaxField` also imple

* **rate** (`float`): the tax rate applied to an item expressed as a percentage. Can be `None`.
* **code** (`str`): tax code (or equivalent, depending on the origin of the document). Can be `None`.
* **base** (`float`): base amount used for the tax. Can be `None`.
* **basis** (`float`): base amount used for the tax. Can be `None`.
* **value** (`float`): the value of the tax. Can be `None`.

> Note: currently `TaxField` is not used on its own, and is accessed through a parent `Taxes` object, a list-like structure.

Expand Down
3 changes: 2 additions & 1 deletion docs/extras/guide/financial_document_v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ Aside from the basic `BaseField` attributes, the tax field `TaxField` also imple

* **rate** (`float`): the tax rate applied to an item expressed as a percentage. Can be `None`.
* **code** (`str`): tax code (or equivalent, depending on the origin of the document). Can be `None`.
* **base** (`float`): base amount used for the tax. Can be `None`.
* **basis** (`float`): base amount used for the tax. Can be `None`.
* **value** (`float`): the value of the tax. Can be `None`.

> Note: currently `TaxField` is not used on its own, and is accessed through a parent `Taxes` object, a list-like structure.

Expand Down
3 changes: 2 additions & 1 deletion docs/extras/guide/invoices_v4.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ Aside from the basic `BaseField` attributes, the tax field `TaxField` also imple

* **rate** (`float`): the tax rate applied to an item expressed as a percentage. Can be `None`.
* **code** (`str`): tax code (or equivalent, depending on the origin of the document). Can be `None`.
* **base** (`float`): base amount used for the tax. Can be `None`.
* **basis** (`float`): base amount used for the tax. Can be `None`.
* **value** (`float`): the value of the tax. Can be `None`.

> Note: currently `TaxField` is not used on its own, and is accessed through a parent `Taxes` object, a list-like structure.

Expand Down
2 changes: 2 additions & 0 deletions mindee/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,8 @@ def enqueue_and_parse(
while retry_counter < max_retries:
if poll_results.job.status == "completed":
break
if poll_results.job.status == "failed":
raise MindeeError("Parsing failed for job {poll_results.job.id}")
logger.debug(
"Polling server for parsing result with job id: %s", queue_result.job.id
)
Expand Down