Pass correct arguments to import retries

This commit is contained in:
Dreddit Web User
2011-01-14 09:55:06 +00:00
parent ff203cc414
commit 376f659da6

View File

@@ -27,7 +27,7 @@ def import_eve_character(character_id, api_key=None, user_id=None, callback=None
pchar = import_eve_character_func(character_id, api_key, user_id, log) pchar = import_eve_character_func(character_id, api_key, user_id, log)
except APIAccessException, exc: except APIAccessException, exc:
log.error('Error importing character - flagging for retry') log.error('Error importing character - flagging for retry')
import_eve_character.retry(args=[char, api_key, user_id, callback], exc=exc, kwargs=kwargs) import_eve_character.retry(args=[character_id, api_key, user_id, callback], exc=exc, kwargs=kwargs)
if callback: if callback:
subtask(callback).delay(character=pchar.id) subtask(callback).delay(character=pchar.id)
@@ -48,7 +48,7 @@ def import_eve_characters(character_list, api_key=None, user_id=None, callback=N
results = [import_eve_character_func(char, api_key, user_id, log) for char in character_list] results = [import_eve_character_func(char, api_key, user_id, log) for char in character_list]
except APIAccessException, exc: except APIAccessException, exc:
log.error('Error importing characters - flagging for retry') log.error('Error importing characters - flagging for retry')
import_eve_characters.retry(args=[char, api_key, user_id, callback], exc=exc, kwargs=kwargs) import_eve_characters.retry(args=[character_list, api_key, user_id, callback], exc=exc, kwargs=kwargs)
if callback: if callback:
subtask(callback).delay(characters=results) subtask(callback).delay(characters=results)
else: else: