From 4460686f91200f7df7b796ebcf7b7abbd10edc2d Mon Sep 17 00:00:00 2001 From: Danyal Ahmed <58849388+danyalahmed1995@users.noreply.github.com> Date: Sat, 30 May 2026 18:45:58 +0500 Subject: [PATCH] steampipe_fixups: skip missing no_write_paths entries --- steampipe_fixups.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/steampipe_fixups.py b/steampipe_fixups.py index e5646ebe6ae..4402a9f50b2 100755 --- a/steampipe_fixups.py +++ b/steampipe_fixups.py @@ -87,7 +87,10 @@ def do_restore(path, manifest): for file_ in no_write_paths: this_file = os.path.join(path, file_) - stat_result = os.lstat(this_file) + try: + stat_result = os.lstat(this_file) + except FileNotFoundError: + continue os.chmod(this_file, stat_result.st_mode & ~(stat.S_IWUSR | stat.S_IWGRP | stat.S_IWOTH))