Merge pull request #192 from AlanCoding/alan_bug

fix logger bug introduced in task except
This commit is contained in:
Alan Rominger
2017-08-08 09:12:53 -04:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -350,7 +350,7 @@ def handle_work_error(self, task_id, subtasks=None):
try:
instance = UnifiedJob.get_instance_by_type(each_task['type'], each_task['id'])
except ObjectDoesNotExist:
logger.warning('Missing {} `{}` in success callback.'.format(each_task['type'], task_actual['id']))
logger.warning('Missing {} `{}` in success callback.'.format(each_task['type'], each_task['id']))
instance = None
if not instance:
# Unknown task type