From 8e6baef7dcf409ed81444ccfbc6291818aea49cf Mon Sep 17 00:00:00 2001 From: Luthics Date: Mon, 16 Jan 2023 17:44:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E6=89=93=E5=8C=85?= =?UTF-8?q?=E5=90=8E=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 4dc2192..fb51a09 100644 --- a/main.py +++ b/main.py @@ -20,7 +20,7 @@ def error(code): print('指定文件不是BMP格式,无法读入', file=sys.stderr) elif (code == 7): print('暂不支持此图片,目前仅支持 bpp=24/32 的文件', file=sys.stderr) - exit(code) + sys.exit(code) def warn(code):