mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-12 23:27:22 +00:00
Payment/Sixpay: Do not log failure twice
This commit is contained in:
parent
9b2e2b31a8
commit
d006b0ff6a
@ -152,10 +152,7 @@ class SixpayNotificationHandler(RHSixpayBase):
|
||||
|
||||
def _process(self):
|
||||
"""Process the reply from SIXPay about the transaction."""
|
||||
try:
|
||||
self._process_confirmation()
|
||||
except TransactionFailure as exc:
|
||||
SixpayPaymentPlugin.logger.warning('SIXPay transaction failed during %s: %s', exc.step, exc.details)
|
||||
self._process_confirmation()
|
||||
|
||||
def _process_confirmation(self):
|
||||
"""Process the confirmation response inside indico."""
|
||||
@ -339,8 +336,7 @@ class UserSuccessHandler(SixpayNotificationHandler):
|
||||
def _process(self):
|
||||
try:
|
||||
self._process_confirmation()
|
||||
except TransactionFailure as exc:
|
||||
SixpayPaymentPlugin.logger.warning('SIXPay transaction failed during %s: %s', exc.step, exc.details)
|
||||
except TransactionFailure:
|
||||
flash(_('Your payment could not be confirmed. Please contact the event organizers.'), 'warning')
|
||||
else:
|
||||
flash(_('Your payment has been confirmed.'), 'success')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user