Skip to content

Commit c26a902

Browse files
committed
BUGGGGG
1 parent 80c24b9 commit c26a902

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

core/screen.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff 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)))

0 commit comments

Comments
 (0)