Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Do not use message atttribute when capturing error

akjanik88d4a9f8a533
diff --git a/saleor/dashboard/order/forms.py b/saleor/dashboard/order/forms.py
index 13400933b8..2335813f4a 100644
--- a/saleor/dashboard/order/forms.py
+++ b/saleor/dashboard/order/forms.py
@@ -72,7 +72,7 @@ class ManagePaymentForm(forms.Form):
try:
action(amount.gross)
except (PaymentError, ValueError) as e:
- self.payment_error(e.message)
+ self.payment_error(str(e))
return False
return True