diff options
-rw-r--r-- | sos/plugins/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py index c225fe69..3785d610 100644 --- a/sos/plugins/__init__.py +++ b/sos/plugins/__init__.py @@ -290,7 +290,11 @@ class Plugin(object): if not dest: dest = srcpath - st = os.lstat(srcpath) + try: + st = os.lstat(srcpath) + except OSError, IOError: + self.log_info("failed to stat '%s'" % srcpath) + return if stat.S_ISLNK(st.st_mode): self.copy_symlink(srcpath) |