mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
[util.log]fix #2177
This commit is contained in:
parent
57b432ff64
commit
728360f4cc
@ -89,10 +89,10 @@ def e(message, exit_code=None):
|
||||
"""Print an error log message."""
|
||||
print_log(message, YELLOW, BOLD)
|
||||
if exit_code is not None:
|
||||
exit(exit_code)
|
||||
sys.exit(exit_code)
|
||||
|
||||
def wtf(message, exit_code=1):
|
||||
"""What a Terrible Failure!"""
|
||||
print_log(message, RED, BOLD)
|
||||
if exit_code is not None:
|
||||
exit(exit_code)
|
||||
sys.exit(exit_code)
|
||||
|
Loading…
Reference in New Issue
Block a user