From 728360f4ccc7c862425b5820dbae7ef4b0c4b38e Mon Sep 17 00:00:00 2001 From: MaxwellGoblin Date: Mon, 24 Jul 2017 07:29:00 +0800 Subject: [PATCH] [util.log]fix #2177 --- src/you_get/util/log.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/you_get/util/log.py b/src/you_get/util/log.py index b858789c..a2c77ab5 100644 --- a/src/you_get/util/log.py +++ b/src/you_get/util/log.py @@ -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)