plot bugfix: don't crash without timestamp
bugfix for commit
@@ -41,6 +41,10 @@ class TimestampParser:
def parse_timestamp(self, timestamp, linenumber):
if self.use_timestamp is None:
+ if timestamp is None:
+ self.use_timestamp = False
+ return linenumber
+
try:
out = self.parse_iso_timestamp(timestamp)
self.use_timestamp = True
@@ -58,6 +62,8 @@ class TimestampParser:
except ValueError:
pass
+ self.use_timestamp = False
+
if self.use_timestamp:
return self._parse_timestamp(timestamp)
else:
