pvl/irk.py
changeset 121 4f16bf6365f1
parent 116 89b7385d19ba
child 128 42d4bd708373
--- a/pvl/irk.py	Sun Jan 13 02:16:12 2013 +0200
+++ b/pvl/irk.py	Sun Jan 13 02:16:36 2013 +0200
@@ -100,6 +100,10 @@
             Yield JSON inputs from source.
         """
 
+        if not self.recv :
+            # never going to be anything
+            return
+
         for line in self.recv :
             # XXX: error handling?
             yield json.loads(line)