Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
refactor: remove blank white spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Noyan Aziz authored and Muhammad Noyan Aziz committed Jul 10, 2024
1 parent 414d703 commit a7d09c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ecommerce/coupons/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def get(self, request): # pylint: disable=too-many-statements
product = StockRecord.objects.get(partner_sku=sku).product
except StockRecord.DoesNotExist:
return render(request, template_name, {'error': _('The product does not exist.')})

try:
voucher = Voucher.objects.get(code=code)
except Voucher.DoesNotExist:
Expand All @@ -185,7 +185,7 @@ def get(self, request): # pylint: disable=too-many-statements

msg = 'No voucher found with code {code}'.format(code=code)
messages.error(self.request, _(msg))

redirect_url = get_payment_microfrontend_or_basket_url(self.request) + "?coupon_redeem_redirect=1"
redirect_url = add_stripe_flag_to_url(redirect_url, self.request)
return HttpResponseRedirect(redirect_url)
Expand Down

0 comments on commit a7d09c6

Please sign in to comment.