From: daid Date: Wed, 26 Nov 2014 12:36:51 +0000 (+0100) Subject: Skip empty lines for #1010 X-Git-Tag: lulzbot-14.12~14 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=9b716762feef087a95643259137f545926229519;p=cura.git Skip empty lines for #1010 --- 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)