浏览代码

corrected a bug with None tag columns

tanja 3 年之前
父节点
当前提交
a5acfc6b38
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cdplib/db_handlers/InfluxdbHandler.py

+ 1 - 1
cdplib/db_handlers/InfluxdbHandler.py

@@ -161,7 +161,7 @@ class InfluxdbHandler:
         """
         
         measurement_columns = [c for c in dataframe.columns
-                               if c not in tag_columns]
+                               if c not in (tag_columns or [])]
         
         for column in measurement_columns:
             try: