Exception während Thread-shutdown
Verfasst: Montag 23. April 2012, 18:09
Ich habe einen Thread, der im daemon Modus läuft und mittels einer Queue Daten zum verarbeiten abruft.
Wird der Hauptprozess beendet, so kommt häufig (nicht immer) folgende exception:
Ist das ein normales Verhalten?
Wird der Hauptprozess beendet, so kommt häufig (nicht immer) folgende exception:
Code: Alles auswählen
Exception in thread Thread-1 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
File "/usr/lib64/python2.6/threading.py", line 532, in __bootstrap_inner
File "task.py", line 89, in run
File "/usr/lib64/python2.6/Queue.py", line 174, in get
<type 'exceptions.TypeError'>: 'NoneType' object is not callable