Skip to content

Commit

Permalink
Flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
hfekete committed Nov 6, 2024
1 parent 0156829 commit 746a505
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions search-api/src/search_api/models/document_access_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 746a505

Please sign in to comment.