From 9de6b8e6e3320ccd371c598fd21324c6740036a2 Mon Sep 17 00:00:00 2001 From: Francois Dinel Date: Sun, 22 Nov 2020 18:17:18 -0500 Subject: [PATCH] Skip empty lines in header instead of stopping parse --- ofxparse/ofxparse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofxparse/ofxparse.py b/ofxparse/ofxparse.py index 8af6c60..95b5013 100644 --- a/ofxparse/ofxparse.py +++ b/ofxparse/ofxparse.py @@ -90,7 +90,7 @@ def read_headers(self): for line in head_data.splitlines(): # Newline? if line.strip() == six.b(""): - break + continue header, value = line.split(six.b(":")) header, value = header.strip().upper(), value.strip()