From c699deccd866c6f8594317a349b3dea451fb371f Mon Sep 17 00:00:00 2001 From: Woosub-Kim Date: Thu, 26 Aug 2021 20:41:30 +0900 Subject: [PATCH] main func return 0 --- probeit/__main__.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/probeit/__main__.py b/probeit/__main__.py index 78255cd..349e1c6 100644 --- a/probeit/__main__.py +++ b/probeit/__main__.py @@ -2,11 +2,15 @@ from .classmodule import Probeit import sys + def main(): - args = sys.argv[1:] - probeit = Probeit(args) - probeit.checkArgs() - quit() + try: + args = sys.argv[1:] + probeit = Probeit(args) + probeit.checkArgs() + return 0 + except: + return 1 if __name__ == '__main__':