From 651e3f1f2d0412e9db64efd3c6902e338ce0bf93 Mon Sep 17 00:00:00 2001 From: tauseef-a <40712942+tauseef-a@users.noreply.github.com> Date: Mon, 27 Sep 2021 19:04:40 +0530 Subject: [PATCH] Update hello_world.py --- scripts/hello_world.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/hello_world.py b/scripts/hello_world.py index 48e7373..01de397 100644 --- a/scripts/hello_world.py +++ b/scripts/hello_world.py @@ -21,8 +21,9 @@ def Main(): Target means run this function when a thread is initiated.""" myThread = threading.Thread(target=MyFunction) myThread.start() # Starting a thread - fp = open("def.txt") - fp.close() + try: + fp = open("def.txt") + #fp.close() if __name__ == '__main__':