From 2af5d22495e6eed0d50b2d6c1e01189133c4ceab Mon Sep 17 00:00:00 2001 From: oleting Date: Sat, 26 Dec 2020 16:24:35 +0100 Subject: [PATCH] + add FileNotFound Message --- gui/gui.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gui/gui.py b/gui/gui.py index 8be9370..4f803b4 100644 --- a/gui/gui.py +++ b/gui/gui.py @@ -134,11 +134,14 @@ class Gui: title='Created') except JavaSyntaxError as JsE: - logging.error(('||SyntaxError in Java File||Failed to create Image with values = ' + str(values))) + logging.error(('||SyntaxError in Java File|| Failed to create Image with values = ' + str(values))) sg.popup_error((str(JsE))) except ScopeNotFoundException as SnFe: - logging.error(('||ScopeNotFoundExeption||Failed to create Image with values = ' + str(values))) + logging.error(('||ScopeNotFoundExeption|| Failed to create Image with values = ' + str(values))) sg.popup_error((str(SnFe))) + except FileNotFoundError as FnFe: + logging.error(('||FileNotFoundError|| Failed to create Image with values = ' + str(values))) + sg.popup_error((str(FnFe) + 'File ' + str(file_path) + ' or ' + str(output_path) + ' is not reachable.')) except: logging.error( ('Failed to create Image with values = ' + str(values)))