[Plone-IT] TypeError: 'NoneType' object is unsubscriptable come gestirlo?
Silvio
silviot a gmail.com
Ven 30 Nov 2012 13:26:08 UTC
2012/11/30 Vito Falco <vitofalco a gmail.com>
> TypeError: 'NoneType' object is unsubscriptable
come faccio a gestirlo?
> Ovvero, riesco a prevedere con un if o try questa situazione?
>
try:
codice
except TypeError, exception:
gestione errore
o
if elementodubbio is None:
gestione errore
else:
codice
possono andare?
Silvio
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lists.plone.org/pipermail/plone-plone-it/attachments/20121130/a1351753/attachment.html>
Maggiori informazioni sulla lista
Plone-IT