File tree Expand file tree Collapse file tree
src/basic_memory/mcp/tools Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments