Skip to content

Commit 5c279c8

Browse files
committed
formatting
Signed-off-by: phernandez <paul@basicmachines.co>
1 parent 747c36f commit 5c279c8

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/basic_memory/mcp/tools/move_note.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,12 +471,16 @@ async def move_note(
471471
source_entity = EntityResponse.model_validate(response.json())
472472

473473
# Extract file extensions
474-
source_ext = source_entity.file_path.split(".")[-1] if "." in source_entity.file_path else ""
474+
source_ext = (
475+
source_entity.file_path.split(".")[-1] if "." in source_entity.file_path else ""
476+
)
475477
dest_ext = destination_path.split(".")[-1] if "." in destination_path else ""
476478

477479
# Check if extensions match
478480
if source_ext and dest_ext and source_ext.lower() != dest_ext.lower():
479-
logger.warning(f"Move failed - file extension mismatch: source={source_ext}, dest={dest_ext}")
481+
logger.warning(
482+
f"Move failed - file extension mismatch: source={source_ext}, dest={dest_ext}"
483+
)
480484
return dedent(f"""
481485
# Move Failed - File Extension Mismatch
482486
@@ -490,7 +494,7 @@ async def move_note(
490494
491495
## Try again with matching extension:
492496
```
493-
move_note("{identifier}", "{destination_path.rsplit('.', 1)[0]}.{source_ext}")
497+
move_note("{identifier}", "{destination_path.rsplit(".", 1)[0]}.{source_ext}")
494498
```
495499
""").strip()
496500
except Exception as e:

0 commit comments

Comments
 (0)