From 91fd700b3f2042d4eda5496579767cb6086302bd Mon Sep 17 00:00:00 2001 From: Lucien Date: Mon, 2 Jul 2018 16:02:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86Windows=E4=B8=8B?= =?UTF-8?q?=E7=9A=84=E8=8B=A5=E5=B9=B2Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upcnet.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/upcnet.py b/upcnet.py index 0fd2525..8d8e156 100644 --- a/upcnet.py +++ b/upcnet.py @@ -120,13 +120,14 @@ def main(): print('Too many args') autoexit(1) - elif sys.argv[1] == 'reset': + if sys.argv[1] == 'reset': if os.path.exists(filePath): os.remove(filePath) print('Reset successful') + autoexit(0) - else: print('Wrong args') - autoexit(0) + print('Wrong args') + autoexit(1) else: upcnet()