mirror of
https://github.com/SantaSpeen/CLI-in-Python.git
synced 2025-07-01 15:25:31 +00:00
1.0
This commit is contained in:
parent
81ed4640a0
commit
c25da23d4c
@ -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.")
|
||||||
|
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user