mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Identify when a character hasn't been imported and log the error
This commit is contained in:
@@ -29,6 +29,9 @@ def import_eve_character(character_id, api_key=None, user_id=None, callback=None
|
||||
log.error('Error importing character - flagging for retry')
|
||||
import_eve_character.retry(args=[character_id, api_key, user_id, callback], exc=exc, kwargs=kwargs)
|
||||
|
||||
if not pchar:
|
||||
log.error('Error importing character %d' % character_id)
|
||||
else:
|
||||
if callback:
|
||||
subtask(callback).delay(character=pchar.id)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user