Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/do/ncf.py
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2018-02-19 21:42:17 +0100
committerArthur de Jong <arthur@arthurdejong.org>2018-02-19 23:03:58 +0100
commit92d751cd03ff165f942ee9034399bb942262ad7f (patch)
tree4b962a893a96ef7b2c7752acaf674062bd1a709e /stdnum/do/ncf.py
parent81947a26fffab3075b51a15f63844b9f89ef318e (diff)
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
Diffstat (limited to 'stdnum/do/ncf.py')
-rw-r--r--stdnum/do/ncf.py2
1 files changed, 2 insertions, 0 deletions
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)