diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2018-09-07 13:00:52 -0400 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2018-09-10 15:43:53 +0100 |
commit | 0ea62d1ea57f41c1b75ccb83e69fdda386a7d280 (patch) | |
tree | d1c7fe20aee104fa1d714a1ab629ad34c5ad975b | |
parent | 9aaba972bf6a42c33ea9bca80f07bfb880ba45a1 (diff) | |
download | sos-0ea62d1ea57f41c1b75ccb83e69fdda386a7d280.tar.gz |
[Plugin] fix exception raise in Plugin._copy_dir()
Use a naked 'raise' statement rather than raising the already caught
exception in _copy_dir(), so that the original stack and backtrace
are avaialable.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py index 252de4d0..ac2c0bc8 100644 --- a/sos/plugins/__init__.py +++ b/sos/plugins/__init__.py @@ -401,7 +401,7 @@ class Plugin(object): msg = "Too many levels of symbolic links copying" self._log_error("_copy_dir: %s '%s'" % (msg, srcpath)) return - raise e + raise def _get_dest_for_srcpath(self, srcpath): if self.use_sysroot(): |