File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1299,10 +1299,11 @@ def SetSettings(ton, args):
12991299 from modules import get_setting
13001300 setting = get_setting (name )
13011301 if setting is None and not force :
1302- color_print (f"{{red}} Error: setting { name } not found {{endc}}. use flag --force to set it anyway" )
1303- if setting .mode is not None :
1302+ color_print (f"{{red}} Error: setting { name } not found.{{endc}} Use flag --force to set it anyway" )
1303+ return
1304+ if setting is not None and setting .mode is not None :
13041305 if not ton .get_mode_value (setting .mode ) and not force :
1305- color_print (f"{{red}} Error: mode { setting .mode } is disabled {{endc}}. Use flag --force to set it anyway" )
1306+ color_print (f"{{red}} Error: mode { setting .mode } is disabled. {{endc}} Use flag --force to set it anyway" )
13061307 return
13071308 ton .SetSettings (name , value )
13081309 color_print ("SetSettings - {green}OK{endc}" )
You can’t perform that action at this time.
0 commit comments