mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 23:02:19 +00:00
Return none if we have a issue getting the document
This commit is contained in:
@@ -45,7 +45,10 @@ def import_eve_account(api_key, user_id, force_cache=False):
|
|||||||
except EVEAccount.DoesNotExist:
|
except EVEAccount.DoesNotExist:
|
||||||
return
|
return
|
||||||
|
|
||||||
dom = minidom.parseString(account_doc.body.encode('utf-8'))
|
if account_doc and account_doc.body:
|
||||||
|
dom = minidom.parseString(account_doc.body.encode('utf-8'))
|
||||||
|
else:
|
||||||
|
return
|
||||||
|
|
||||||
enode = dom.getElementsByTagName('error')
|
enode = dom.getElementsByTagName('error')
|
||||||
if enode:
|
if enode:
|
||||||
|
|||||||
Reference in New Issue
Block a user