Do not stop on IOErrors
authorYves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
Wed, 17 Aug 2011 18:35:14 +0200
changeset 256 2f335337ff64
parent 255 500cd0405c7a
child 257 6d1d70b9b525
Do not stop on IOErrors
script/stream/recorder_tweetstream.py
--- a/script/stream/recorder_tweetstream.py	Wed Aug 17 18:32:07 2011 +0200
+++ b/script/stream/recorder_tweetstream.py	Wed Aug 17 18:35:14 2011 +0200
@@ -267,6 +267,8 @@
                 logging.getLogger(record.name).handle(record)
             except Queue.Empty:
                 continue
+            except IOError:
+                continue
         time.sleep(0.1)