Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaid <daid303@gmail.com>2014-11-26 15:36:51 +0300
committerdaid <daid303@gmail.com>2014-11-26 15:36:51 +0300
commit2eb66704a12bda62705c410bae515ef7bc531b1d (patch)
tree279c4cdb85293bc17f8178f8d481f0f6ef1a610c
parent47e4751bdbaaee9f52766f2cfa67e76b02deeaa9 (diff)
Skip empty lines for #101014.11-RC8
-rw-r--r--Cura/avr_isp/intelHex.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Cura/avr_isp/intelHex.py b/Cura/avr_isp/intelHex.py
index fb78bb0ac5..21fb46394c 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)