diff options
author | Ben Thomasson <bthomass@redhat.com> | 2020-02-17 21:57:31 +0100 |
---|---|---|
committer | Ben Thomasson <bthomass@redhat.com> | 2020-02-17 21:59:05 +0100 |
commit | 0c0cacb0d63f08b2ca1c17153f5c74677f9c0e9d (patch) | |
tree | 8cd6cec567986efce9c9ba6bc8b4dbe7e040a325 | |
parent | Merge pull request #5712 from mabashian/ui-next-workflows-4 (diff) | |
download | awx-0c0cacb0d63f08b2ca1c17153f5c74677f9c0e9d.tar.xz awx-0c0cacb0d63f08b2ca1c17153f5c74677f9c0e9d.zip |
Works around bad error message when authentication fails
related #5964
-rwxr-xr-x | awxkit/awxkit/scripts/basic_session.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/awxkit/awxkit/scripts/basic_session.py b/awxkit/awxkit/scripts/basic_session.py index eaf9ac9ec7..b5561c6d14 100755 --- a/awxkit/awxkit/scripts/basic_session.py +++ b/awxkit/awxkit/scripts/basic_session.py @@ -90,18 +90,11 @@ def main(): exec(open(akit_args.akit_script).read(), globals()) except Exception as e: exc = e - raise exc + raise except Exception as e: exc = e rc = 1 - - if akit_args.non_interactive: - if exc: - traceback.print_exc(exc) - os._exit(rc) - - if exc: - raise exc + raise def as_user(username, password=None): |