From 2eb66704a12bda62705c410bae515ef7bc531b1d Mon Sep 17 00:00:00 2001 From: daid Date: Wed, 26 Nov 2014 13:36:51 +0100 Subject: [PATCH] Skip empty lines for #1010 --- Cura/avr_isp/intelHex.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cura/avr_isp/intelHex.py b/Cura/avr_isp/intelHex.py index fb78bb0a..21fb4639 100644 --- a/Cura/avr_isp/intelHex.py +++ b/Cura/avr_isp/intelHex.py @@ -15,6 +15,8 @@ def readHex(filename): f = io.open(filename, "r") for line in f: line = line.strip() + if len(line) < 1: + continue if line[0] != ':': raise Exception("Hex file has a line not starting with ':'") recLen = int(line[1:3], 16) -- 2.30.2