File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -200,15 +200,15 @@ def read_command(self) -> None:
200200 self .read_command ()
201201 return
202202
203- # try:
204- new_state : str | Context | Any = command_object .call_function (* tuple (interpreted_args ))
205-
206- # except Exception as e:
207- # self.clear_screen()
208- # self.write(f"{self._COLORMAP['ERROR_BACKGROUND']}{self._COLORMAP['ERROR_FOREGROUND']}Oops! Something went wrong... - {e}{self._COLORMAP['RESET_ALL']}\n\n{str(self._cur_context)}")
209- # self._REMOVE_LINE = False
210- # self.read_command()
211- # return
203+ try :
204+ new_state : str | Context | Any = command_object .call_function (* tuple (interpreted_args ))
205+
206+ except Exception as e :
207+ self .clear_screen ()
208+ self .write (f"{ self ._COLORMAP ['ERROR_BACKGROUND' ]} { self ._COLORMAP ['ERROR_FOREGROUND' ]} Oops! Something went wrong... - { e } { self ._COLORMAP ['RESET_ALL' ]} \n \n { str (self ._cur_context )} " )
209+ self ._REMOVE_LINE = False
210+ self .read_command ()
211+ return
212212
213213 if isinstance (new_state , str ):
214214 self ._cur_context .update_screen (new_state .replace ('!/CURRENTRENDERCONTEXTASISNOCHANGE/' , str (self ._cur_context )))
You can’t perform that action at this time.
0 commit comments