We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49b8384 commit 2869808Copy full SHA for 2869808
bittensor_cli/cli.py
@@ -612,7 +612,12 @@ def debug_callback(value: bool):
612
"Enter the file location to save the debug log for the previous command.",
613
default="~/.bittensor/debug-export",
614
).strip()
615
- save_file_loc = os.path.expanduser(save_file_loc_)
+ save_file_loc = Path(os.path.expanduser(save_file_loc_))
616
+ if not save_file_loc.parent.exists():
617
+ if Confirm.ask(
618
+ f"The directory '{save_file_loc.parent}' does not exist. Would you like to create it?"
619
+ ):
620
+ save_file_loc.parent.mkdir(parents=True, exist_ok=True)
621
try:
622
with (
623
open(save_file_loc, "w+") as save_file,
0 commit comments