diff --git a/capella2polarion/connectors/polarion_worker.py b/capella2polarion/connectors/polarion_worker.py index 6a9e103..0bbee57 100644 --- a/capella2polarion/connectors/polarion_worker.py +++ b/capella2polarion/connectors/polarion_worker.py @@ -146,11 +146,12 @@ def delete_orphaned_work_items( ): logger.info("Delete work item %r...", wi.id) work_items.append(wi) - try: - self.project_client.work_items.delete(work_items) - except polarion_api.PolarionApiException as error: - logger.error("Deleting work items failed. %s", error.args[0]) - raise error + + try: + self.project_client.work_items.delete(work_items) + except polarion_api.PolarionApiException as error: + logger.error("Deleting work items failed. %s", error.args[0]) + raise error self.polarion_data_repo.remove_work_items_by_capella_uuid(uuids) diff --git a/pyproject.toml b/pyproject.toml index 0427775..e0e2fcb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ dependencies = [ "capellambse_context_diagrams>=0.5.0,<0.6", "click", "PyYAML", - "polarion-rest-api-client==1.2.1", + "polarion-rest-api-client==1.2.2", "bidict", "cairosvg", "jinja2",