From 8600af3a9c2dd99f313959eecf7403994c9de9f4 Mon Sep 17 00:00:00 2001 From: Kevin Matz Date: Thu, 25 Oct 2018 18:16:48 -0400 Subject: [PATCH] allow script to exit naturally --- comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comment.py b/comment.py index 9cb7d7e..054368c 100755 --- a/comment.py +++ b/comment.py @@ -69,6 +69,6 @@ if __name__ == '__main__': text = 'exit' print(text) if text == 'exit': - sys.exit(0) + break else: comment(text)