Skip to content

Commit 826956a

Browse files
authored
Merge pull request #137 from simonlindberg/master
Ignore any None data rows when writing to time series db
2 parents 8fe152e + e41017f commit 826956a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vaping/plugins/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,10 @@ def emit(self, message):
576576
if isinstance(message.get("data"), list):
577577
for row in message.get("data"):
578578

579+
if row is None:
580+
self.log.debug("Ignoring empty row from %s/%s" % (message.get("source"), message.get("type")))
581+
continue
582+
579583
# format filename from data
580584
filename = self.format_filename(message, row)
581585

0 commit comments

Comments
 (0)