From 92d751cd03ff165f942ee9034399bb942262ad7f Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Mon, 19 Feb 2018 21:42:17 +0100 Subject: Fix PySimpleSOAP DGII result parsing issue This strips the wrapper that PySimpleSOAP puts around results from the DGII PySimpleSOAP SOAP call. Closes https://github.com/arthurdejong/python-stdnum/issues/64 Closes https://github.com/arthurdejong/python-stdnum/issues/65 --- stdnum/do/ncf.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'stdnum/do/ncf.py') diff --git a/stdnum/do/ncf.py b/stdnum/do/ncf.py index c59d8b9..51b360d 100644 --- a/stdnum/do/ncf.py +++ b/stdnum/do/ncf.py @@ -128,6 +128,8 @@ def check_dgii(rnc, ncf, timeout=30): # pragma: no cover RNC=rnc, NCF=ncf, IMEI='') + if result and 'GetNCFResult' in result: + result = result['GetNCFResult'] # PySimpleSOAP only if result == '0': return return _convert_result(result) -- cgit v1.2.3