diff options
author | Brian Coca <brian.coca+git@gmail.com> | 2019-01-21 12:47:02 -0500 |
---|---|---|
committer | Brian Coca <bcoca@users.noreply.github.com> | 2019-01-22 17:33:20 -0500 |
commit | 8fd0fbe431573054e881bb51c9cb8f8902a42467 (patch) | |
tree | b2a26e26f85fe4fd6c58a64e0e80199f3b0f6f1b /lib/ansible/errors | |
parent | f018b9d07dac91cba2961f8dd2bce900f651c781 (diff) | |
download | ansible-8fd0fbe431573054e881bb51c9cb8f8902a42467.tar.gz |
remove usless tb initiator
always pass proper tb
Diffstat (limited to 'lib/ansible/errors')
-rw-r--r-- | lib/ansible/errors/__init__.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/ansible/errors/__init__.py b/lib/ansible/errors/__init__.py index 5abdb4c74b..35ceaf4949 100644 --- a/lib/ansible/errors/__init__.py +++ b/lib/ansible/errors/__init__.py @@ -20,8 +20,6 @@ from __future__ import (absolute_import, division, print_function) __metaclass__ = type import re -import sys -import traceback from ansible.errors.yaml_strings import ( YAML_COMMON_DICT_ERROR, @@ -72,8 +70,6 @@ class AnsibleError(Exception): if orig_exc: self.orig_exc = orig_exc - self.tb = ''.join(traceback.format_tb(sys.exc_info()[2])) - def __str__(self): return self.message |