Skip to content

Commit

Permalink
fix: linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
shafqatfarhan committed Dec 18, 2024
1 parent 0b7f90e commit ca250cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,3 @@ def get_edx_refund_info(payment: CTPayment) -> decimal:
interaction_id = transaction.interaction_id
return refund_amount, interaction_id
return refund_amount, interaction_id

3 changes: 1 addition & 2 deletions commerce_coordinator/apps/paypal/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@ def __init__(self):
),
)


def refund_order(self, capture_id):
"""
Capture PayPal refund.
Args:
capture_id (str): The identifier of the PayPal order to cpture refund.
capture_id (str): The identifier of the PayPal order to capture refund.
Returns:
The response from PayPal.
Expand Down
6 changes: 3 additions & 3 deletions commerce_coordinator/apps/paypal/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ def run_filter(
}
except Exception as ex:
logger.error(f'[CT-{tag}] Unsuccessful PayPal refund with details: '
f'[order_id: {order_id} '
f'message_id: {kwargs["message_id"]} '
f'exception: {ex}')
f'[order_id: {order_id} '
f'message_id: {kwargs["message_id"]} '
f'exception: {ex}')

raise RequestException(str(ex)) from ex

0 comments on commit ca250cd

Please sign in to comment.