mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-15 07:12:16 +00:00
Fixed DOM parsing for corp_management puller
This commit is contained in:
@@ -24,7 +24,7 @@ def pull_corp_members(api_key, user_id, character_id):
|
|||||||
params=auth_params,
|
params=auth_params,
|
||||||
no_cache=False)
|
no_cache=False)
|
||||||
|
|
||||||
dom = minidom.parseString(char_doc.body)
|
dom = minidom.parseString(char_doc.body.encode('utf-8'))
|
||||||
if dom.getElementsByTagName('error'):
|
if dom.getElementsByTagName('error'):
|
||||||
return
|
return
|
||||||
nodes = dom.getElementsByTagName('result')[0].childNodes
|
nodes = dom.getElementsByTagName('result')[0].childNodes
|
||||||
|
|||||||
Reference in New Issue
Block a user