Index: src/python/gnuboat/daemon/gpsdpoller.py
===================================================================
--- src/python/gnuboat/daemon/gpsdpoller.py	(revision b8b5e774e7bc5a634ac5fcbf6d9cfe9a987e3c58)
+++ src/python/gnuboat/daemon/gpsdpoller.py	(revision 939b309ad4838fcf9c5483348431961751e734f8)
@@ -22,4 +22,5 @@
 import datetime
 import gps
+import traceback
 
 # Copied from https://gist.github.com/wolfg1969/4653340
@@ -82,5 +83,5 @@
         if isinstance(currentTime, float):
             return datetime.datetime.fromtimestamp(currentTime)
-        return dateutil.parser.parse(self._session.fix.time)
+        return dateutil.parser.parse(currentTime)
 
     def stop(self):
@@ -90,5 +91,11 @@
         try:
             while self._running:
-                self._currentValue = self._session.next()
+                try:
+                    self._currentValue = self._session.next()
+                except StopIteration:
+                    break;
+                except:
+                    print "Failed to read gpsd data"
+                    print(traceback.format_exc())
                 time.sleep(float(self._logperiod) / 2.0)
         except StopIteration:
