Identify when a character hasn't been imported and log the error

This commit is contained in:
2011-01-25 08:52:31 +00:00
parent 3f4826a202
commit 10ac9367c2

View File

@@ -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: