File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1257,7 +1257,7 @@ def main_callback(
1257
1257
):
1258
1258
"""
1259
1259
Command line interface (CLI) for Bittensor. Uses the values in the configuration file. These values can be
1260
- overriden by passing them explicitly in the command line.
1260
+ overridden by passing them explicitly in the command line.
1261
1261
"""
1262
1262
# Load or create the config file
1263
1263
if os .path .exists (self .config_path ):
@@ -1281,6 +1281,9 @@ def main_callback(
1281
1281
if sub_key not in config [key ]:
1282
1282
config [key ][sub_key ] = sub_value
1283
1283
updated = True
1284
+ elif isinstance (value , bool ) and config [key ] is None :
1285
+ config [key ] = value
1286
+ updated = True
1284
1287
if updated :
1285
1288
with open (self .config_path , "w" ) as f :
1286
1289
safe_dump (config , f )
You can’t perform that action at this time.
0 commit comments