|
|
@@ -371,7 +371,10 @@ def edit(request):
|
|
|
|
|
|
|
|
|
print('Form non valida,altro ciclo')
|
|
|
- utente = Utente.objects.get(pk=data['UserEditId'])
|
|
|
+ try:
|
|
|
+ utente = Utente.objects.get(pk=data['UserEditId'])
|
|
|
+ except ValueError as ve:
|
|
|
+ print('errore nella definizione dell id',ve)
|
|
|
tmp = dict()
|
|
|
tmp['nome'] = utente.nome
|
|
|
tmp['codicefiscale'] = utente.codicefiscale
|