Skip to content

Commit

Permalink
Another Python 3 exeption rendering fix (Exception.message isn't a th…
Browse files Browse the repository at this point in the history
…ing in Python 3).
  • Loading branch information
alecpm committed Nov 26, 2024
1 parent 2cd1e9c commit 8d98972
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jazkarta/shop/browser/checkout/stripe.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ def handle_submit(self):
except PaymentProcessingException as e:
charge_result = {
'success': False,
'err_msg': e.message,
'err_msg': str(e),
'err_code': getattr(e, 'code', None),
}
self.error = e.message
self.error = str(e)

if not self.error:
try:
Expand Down

0 comments on commit 8d98972

Please sign in to comment.