forked from DGNum/gestioCOF
Syntaxe py3
`except e1, e2:` n'est pas valide en python3, il faut des parenthèses.
This commit is contained in:
parent
dc4f0473fe
commit
c79456e958
1 changed files with 1 additions and 1 deletions
|
@ -803,7 +803,7 @@ def kpsul(request):
|
|||
is_protected=False, valid_from__lte=timezone.now(),
|
||||
valid_to__gte=timezone.now()).get()
|
||||
initial['checkout'] = checkout
|
||||
except Checkout.DoesNotExist, Checkout.MultipleObjectsReturned:
|
||||
except (Checkout.DoesNotExist, Checkout.MultipleObjectsReturned):
|
||||
pass
|
||||
data['checkout_form'] = KPsulCheckoutForm(initial=initial)
|
||||
operation_formset = KPsulOperationFormSet(queryset=Operation.objects.none())
|
||||
|
|
Loading…
Reference in a new issue