fix(scripts): set executable bit and narrow exception handling in bundle_project.py

This commit is contained in:
kiskaadee committed 2026-09-14 10:52:53 -05:00
1 parent f9342dc8e6
commit 46ad7843ea
1 file changed
+2 -2
Regular → Executable
+2 -2
View File
@@ -99,11 +99,11 @@ def create_bundle(target_dir: Path, output_file: Path) -> None:
out_f.write("\n")
out_f.write("\n")
except Exception as e:
except (OSError, UnicodeDecodeError) as e:
out_f.write(f"[Error reading file: {e}]\n\n")
print("Done!")
except Exception as e:
except OSError as e:
print(f"Error writing output file: {e}", file=sys.stderr)
sys.exit(1)