mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Ignore quota errors during order creation
This commit is contained in:
@@ -678,7 +678,10 @@ def _perform_order(event: str, payment_provider: str, position_ids: List[str],
|
|||||||
|
|
||||||
free_order_flow = payment and payment_provider == 'free' and order.total == Decimal('0.00') and not order.require_approval
|
free_order_flow = payment and payment_provider == 'free' and order.total == Decimal('0.00') and not order.require_approval
|
||||||
if free_order_flow:
|
if free_order_flow:
|
||||||
payment.confirm(send_mail=False, lock=False)
|
try:
|
||||||
|
payment.confirm(send_mail=False, lock=False)
|
||||||
|
except Quota.QuotaExceededException:
|
||||||
|
pass
|
||||||
|
|
||||||
invoice = order.invoices.last() # Might be generated by plugin already
|
invoice = order.invoices.last() # Might be generated by plugin already
|
||||||
if event.settings.get('invoice_generate') == 'True' and invoice_qualified(order):
|
if event.settings.get('invoice_generate') == 'True' and invoice_qualified(order):
|
||||||
|
|||||||
Reference in New Issue
Block a user