Log processor: fix crash
@@ -88,6 +88,12 @@ class InputLogCache:
data = yaml.load(f.read())
self.min_timestamp = data.get("min_timestamp", None)
self.max_timestamp = data.get("max_timestamp", None)
+
+ if not isinstance(self.min_timestamp, datetime):
+ self.min_timestamp = None
+ if not isinstance(self.max_timestamp, datetime):
+ self.max_timestamp = None
+
if self.min_timestamp is None and self.max_timestamp is not None:
self.min_timestamp = self.max_timestamp
if self.max_timestamp is None and self.min_timestamp is not None:
