From 4afdaa86c3d09df9471ade3f654a9cd3201a4c08 Mon Sep 17 00:00:00 2001 From: Build Setup Date: Fri, 24 Jul 2020 15:51:12 +0000 Subject: [PATCH] avoid exception when the current value is None --- otestpoint/labtools/delta.py | 1 + 1 file changed, 1 insertion(+) diff --git a/otestpoint/labtools/delta.py b/otestpoint/labtools/delta.py index 2ff6589..45f1096 100644 --- a/otestpoint/labtools/delta.py +++ b/otestpoint/labtools/delta.py @@ -205,6 +205,7 @@ def notify(self,subject): # it match the current value structure # (i.e. single value or list if values) if previous != None and \ + data[timestamp][tag] != None and \ hasattr(previous, '__iter__') == hasattr(data[timestamp][tag], '__iter__') and \ pd.notnull(previous): if data[timestamp][tag] >= previous: