Skip to content

Commit 4cc81b0

Browse files
fix: convert PosixPath to string before calling endswith in create_ops_docs.py
- Fixes AttributeError when checking file extension - Addresses CI failure in update-ops-docs workflow Co-Authored-By: Jake Cosme <[email protected]>
1 parent 196343d commit 4cc81b0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/create_ops_docs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@ def run(self) -> None:
177177
docs_dir.mkdir(exist_ok=True)
178178

179179
ops_file = docs_dir / self.output_filename
180-
if not ops_file.endswith((".md", ".MD")):
181-
180+
if not str(ops_file).endswith((".md", ".MD")):
182181
raise ValueError(f"Invalid output file: {ops_file}")
183182

184183
with open(ops_file, "w") as f:

0 commit comments

Comments
 (0)