Explorar el Código

corrected a bug with None tag columns

tanja hace 4 años
padre
commit
a5acfc6b38
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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: