This commit is contained in:
santaspeen 2022-02-20 23:58:13 +03:00
parent 81ed4640a0
commit c25da23d4c
2 changed files with 5 additions and 5 deletions

View File

@ -221,8 +221,8 @@ class Console:
else: else:
self.log(self.__not_found % cmd) self.log(self.__not_found % cmd)
except Exception as e: except Exception as e:
if e == KeyboardInterrupt: # if e == KeyboardInterrupt:
raise e # raise e
ConsoleIO.write_err("\rDuring the execution of the command, an error occurred:\n\n" + ConsoleIO.write_err("\rDuring the execution of the command, an error occurred:\n\n" +
str(traceback.format_exc()) + str(traceback.format_exc()) +
"\nType Enter to continue.") "\nType Enter to continue.")

View File

@ -94,6 +94,6 @@ def cli_mode():
if __name__ == '__main__': if __name__ == '__main__':
cli_print() cli_print()
# logger_preview() logger_preview()
# builtins_preview() builtins_preview()
# cli_mode() cli_mode()