mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 05:29:26 -02:30
move code linting to a stricter pep8-esque auto-formatting tool, black
This commit is contained in:
@@ -2,8 +2,7 @@
|
||||
# All Rights Reserved.
|
||||
|
||||
|
||||
|
||||
class _AwxTaskError():
|
||||
class _AwxTaskError:
|
||||
def build_exception(self, task, message=None):
|
||||
if message is None:
|
||||
message = "Execution error running {}".format(task.log_format)
|
||||
@@ -14,7 +13,7 @@ class _AwxTaskError():
|
||||
|
||||
def TaskCancel(self, task, rc):
|
||||
"""Canceled flag caused run_pexpect to kill the job run"""
|
||||
message="{} was canceled (rc={})".format(task.log_format, rc)
|
||||
message = "{} was canceled (rc={})".format(task.log_format, rc)
|
||||
e = self.build_exception(task, message)
|
||||
e.rc = rc
|
||||
e.awx_task_error_type = "TaskCancel"
|
||||
|
||||
Reference in New Issue
Block a user