8000 Fix parsing of empty fields in DGII checking · cedk/python-stdnum@48e6502 · GitHub
[go: up one dir, main page]

Skip to content

Commit 48e6502

Browse files
andres-pcgarthurdejong
authored andcommitted
Fix parsing of empty fields in DGII checking
1 parent 2b452b6 commit 48e6502

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdnum/do/ncf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,6 @@ def check_dgii(rnc, ncf, buyer_rnc=None, security_code=None, timeout=30): # pra
228228
'validation_message': document.findtext(lbl_path).strip(),
229229
}
230230
data.update(zip(
231-
[x.text.strip() for x 4DDE in result.findall('.//th')],
232-
[x.text.strip() for x in result.findall('.//td/span')]))
231+
[x.text.strip() for x in result.findall('.//th') if x.text],
232+
[x.text.strip() for x in result.findall('.//td/span') if x.text]))
233233
return _convert_result(data)

0 commit comments

Comments
 (0)
0