Sfoglia il codice sorgente

corrected a bug with None tag columns

tanja 3 anni fa
parent
commit
a5acfc6b38
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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: