mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Fixes issues experienced during the eve upgrade.
Accounts marked as "Other Error" were killed when really they should be ignored for the moment. I've added further checking on the eve_api import that ingores down errors (900 and above) and the access checker to ignore accounts with a status of 3.
This commit is contained in:
@@ -55,6 +55,11 @@ def import_eve_account(api_key, user_id):
|
||||
return
|
||||
|
||||
error = enode[0].getAttribute('code')
|
||||
|
||||
if int(error) >= 900:
|
||||
# API disabled, down or rejecting, return without changes
|
||||
return
|
||||
|
||||
if error == '211':
|
||||
account.api_status = API_STATUS_ACC_EXPIRED
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user