From 5ef685ddb6aafe82ab7baa589c055721d3e51cac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 21 Sep 2015 14:00:05 +0200 Subject: Potential fix of wrong input data format exception --- scripts/boot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/boot.py b/scripts/boot.py index 31328a1..88da817 100644 --- a/scripts/boot.py +++ b/scripts/boot.py @@ -38,5 +38,8 @@ def boot(config, to_database = True): dtb = database.database() txt = '' for ln in out: + for c in ln: + if c == '\x00': + c = ' ' txt += ln + '\n' dtb.add_measure(txt, result, config.id, value) -- cgit v1.2.3