Return none if we have a issue getting the document

This commit is contained in:
2010-11-08 10:31:36 +00:00
parent 5e41d4e9cb
commit 0790f32bc7

View File

@@ -45,7 +45,10 @@ def import_eve_account(api_key, user_id, force_cache=False):
except EVEAccount.DoesNotExist:
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')
if enode: