From 0ea62d1ea57f41c1b75ccb83e69fdda386a7d280 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Fri, 7 Sep 2018 13:00:52 -0400 Subject: [PATCH 0045/1146] [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 --- sos/plugins/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(): -- 2.26.0.windows.1