allora per vedere se una mia funzione che a volte prende molto tempo(ed ho messo dentro un thread) fallisce il suo compito l'ho messa dentro un blocco try ma ho il seguente errore:
Unhandled exception in thread started by
Error in sys.excepthook:
Original exception was:
questo è il codice:
codice:
try:
thread.start_new_thread(archive,(file,base))
except thread.error:
err=gtk.MessageDialog(None,0,gtk.MESSAGE_ERROR,gtk.BUTTONS_OK,None)
err.set_markup("errore impossibile esportare il tema!")
run=err.run()
if run == gtk.RESPONSE_OK:
err.destroy()
else:
succ=gtk.MessageDialog(None,0,gtk.MESSAGE_INFO,gtk.BUTTONS_OK,None)
succ.set_markup("Tema esportato!")
run=succ.run()
if run == gtk.RESPONSE_OK:
succ.destroy()
non so come risolvere :master: