From c376de9f75851e025d5f8508b2431bd5a035af89 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 24 Dec 2019 16:52:55 +0100 Subject: [PATCH] Update core.py Fix for issue https://github.com/panodata/dwdweather2/issues/19 --- dwdweather/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwdweather/core.py b/dwdweather/core.py index 10ddab2..ef96750 100644 --- a/dwdweather/core.py +++ b/dwdweather/core.py @@ -466,7 +466,7 @@ def import_measures_textfile(self, result): cell = float(cell) elif fieldtype == "int": try: - cell = int(cell) + cell = int(float(cell)) except ValueError: sys.stderr.write( "Error in converting field '%s', value '%s' to int.\n"