Syntaxe py3

`except e1, e2:` n'est pas valide en python3, il faut des parenthèses.
This commit is contained in:
Martin Pépin 2016-09-12 23:24:18 +02:00
parent dc4f0473fe
commit c79456e958

View file

@ -803,7 +803,7 @@ def kpsul(request):
is_protected=False, valid_from__lte=timezone.now(), is_protected=False, valid_from__lte=timezone.now(),
valid_to__gte=timezone.now()).get() valid_to__gte=timezone.now()).get()
initial['checkout'] = checkout initial['checkout'] = checkout
except Checkout.DoesNotExist, Checkout.MultipleObjectsReturned: except (Checkout.DoesNotExist, Checkout.MultipleObjectsReturned):
pass pass
data['checkout_form'] = KPsulCheckoutForm(initial=initial) data['checkout_form'] = KPsulCheckoutForm(initial=initial)
operation_formset = KPsulOperationFormSet(queryset=Operation.objects.none()) operation_formset = KPsulOperationFormSet(queryset=Operation.objects.none())