From 07232f36944ad748d62a97b3806c662a6c79182c Mon Sep 17 00:00:00 2001 From: Yanis Guenane Date: Wed, 26 Feb 2020 11:07:41 +0100 Subject: awx-api-lint: Fix setup.cfg syntax for linter test Signed-off-by: Yanis Guenane --- awxkit/awxkit/api/pages/credentials.py | 6 ++++-- awxkit/awxkit/scripts/basic_session.py | 5 ++--- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'awxkit') diff --git a/awxkit/awxkit/api/pages/credentials.py b/awxkit/awxkit/api/pages/credentials.py index b12ada76d0..d9d039c837 100644 --- a/awxkit/awxkit/api/pages/credentials.py +++ b/awxkit/awxkit/api/pages/credentials.py @@ -182,7 +182,8 @@ class CredentialType(HasCreate, base.Base): response = self.connection.post(urljoin(str(self.url), 'test/'), data) exception = exception_from_status_code(response.status_code) exc_str = "%s (%s) received" % ( - http.responses[response.status_code], response.status_code) + http.responses[response.status_code], response.status_code + ) if exception: raise exception(exc_str, response.json()) elif response.status_code == http.FORBIDDEN: @@ -328,7 +329,8 @@ class Credential(HasCopy, HasCreate, base.Base): response = self.connection.post(urljoin(str(self.url), 'test/'), data) exception = exception_from_status_code(response.status_code) exc_str = "%s (%s) received" % ( - http.responses[response.status_code], response.status_code) + http.responses[response.status_code], response.status_code + ) if exception: raise exception(exc_str, response.json()) elif response.status_code == http.FORBIDDEN: diff --git a/awxkit/awxkit/scripts/basic_session.py b/awxkit/awxkit/scripts/basic_session.py index b5561c6d14..4ede325214 100755 --- a/awxkit/awxkit/scripts/basic_session.py +++ b/awxkit/awxkit/scripts/basic_session.py @@ -1,5 +1,4 @@ from argparse import ArgumentParser -import traceback import logging import pdb # noqa import sys @@ -92,8 +91,8 @@ def main(): exc = e raise except Exception as e: - exc = e - rc = 1 + exc = e # noqa + rc = 1 # noqa raise -- cgit v1.2.3