Philip Jenvey committed 58a5238

we may have already been removed w/ daemon threads & sys.exit. this is diffcult
to test

  • Participants
  • Parent commits 173c519

Comments (0)

Files changed (1)


     def remove(self, w_iobase):
         holder = w_iobase.streamholder
         if holder is not None:
-            del self.streams[holder]
+            try:
+                del self.streams[holder]
+            except KeyError:
+                # this can happen in daemon threads
+                pass
     def flush_all(self, space):
         while self.streams: