File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ def show(cls, state: AppConfig):
106
106
print ("----------------------------------------------------" )
107
107
result = inquirer .prompt ([
108
108
inquirer .Text ('debug_level' ,
109
- message = "Debug Level (0-3 )" ,
109
+ message = "Debug Level (0-2) (0=warnings and errors; 1 = normal; 2 = verbose )" ,
110
110
default = str (state .debug_level ),
111
111
validate = lambda _ , x : x .isdigit () and int (x ) > 0
112
112
),
@@ -171,6 +171,8 @@ def interactive_shell(state: AppConfig):
171
171
except KeyboardInterrupt :
172
172
print ("\n Operation cancelled by user." )
173
173
continue
174
+ except ValueError as e :
175
+ logger .warning (f"{ colorama .Fore .RED } { colorama .Style .BRIGHT } Wrong value:{ colorama .Style .RESET_ALL } { e } " )
174
176
except Exception as e :
175
177
logger .error (f"An error occurred: { e } " , exc_info = True )
176
178
break
You can’t perform that action at this time.
0 commit comments