From 746a505d82e8db9c354e62a085993a11a2d24218 Mon Sep 17 00:00:00 2001 From: Hrvoje Fekete Date: Wed, 6 Nov 2024 15:38:37 -0800 Subject: [PATCH] Flake8 --- search-api/src/search_api/models/document_access_request.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/search-api/src/search_api/models/document_access_request.py b/search-api/src/search_api/models/document_access_request.py index 8cc6bc2..86980bc 100644 --- a/search-api/src/search_api/models/document_access_request.py +++ b/search-api/src/search_api/models/document_access_request.py @@ -173,12 +173,10 @@ def _raise_default_lock_exception(): def cancel(self): """ - Cancels the current payment request if it is in the CREATED state. + Cancel the current payment request if it is in the CREATED state. Raises a BusinessException with an error and the HTTP status FORBIDDEN if the payment request is not in the CREATED state. - Sets the status to ERROR and updates the payment status code to 'PAYMENT_CANCELLED'. - Saves the current state of the request. """ if self.status != self.Status.CREATED: raise BusinessException(