Skip to content

Commit eb18520

Browse files
committed
added None protection
1 parent 45fe168 commit eb18520

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codetide/mcp/tools/patch_code/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def process_patch(
144144

145145
# Normalize line endings before processing
146146
patches_text = open_fn(patch_path)
147-
patches = parse_patch_blocks(patches_text)
147+
patches = parse_patch_blocks(patches_text) or []
148148

149149
all_paths_needed = []
150150
for text in patches:

0 commit comments

Comments
 (0)