From 28359e16a1ef497423e6b534ce2fb868c64f34f4 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Thu, 30 Jan 2014 11:41:06 -0500 Subject: [PATCH] Fix spelling mistake --- awx/main/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 6f7778afe3..99d246010d 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -307,7 +307,7 @@ class BaseTask(Task): result_traceback=tb, output_replacements=output_replacements) self.post_run_hook(instance, **kwargs) - if status != 'successful' and not has hasattr(settings, 'CELERY_UNIT_TEST'): + if status != 'successful' and not hasattr(settings, 'CELERY_UNIT_TEST'): # Raising an exception will mark the job as 'failed' in celery # and will stop a task chain from continuing to execute raise Exception("Task %s(pk:%s) encountered an error" % (str(self.model.__class__), str(pk)))