From e7403880512135780ea5e6a8e1117bf733f8db51 Mon Sep 17 00:00:00 2001 From: LuposX <36456825+LuposX@users.noreply.github.com> Date: Thu, 12 Sep 2019 18:37:01 +0200 Subject: [PATCH] Update boston-housing-0_1_1.py removed unescarry try except --- boston-housing-0_1_1.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/boston-housing-0_1_1.py b/boston-housing-0_1_1.py index 1bc00f8..2a637a8 100644 --- a/boston-housing-0_1_1.py +++ b/boston-housing-0_1_1.py @@ -441,11 +441,8 @@ def getter_viszualtion(self) -> list: file_list.append(line) except FileNotFoundError as e: print("Errot file not found: ", str(e)) - try: - if visualize_process.is_alive(): - visualize_process.terminate() - except Exception as e: - pass + if visualize_process.is_alive(): + visualize_process.terminate() sys.exit(1) # exit the script sucessful try: