From 00a897a8970179dfb85f51dce9bc605439c3f017 Mon Sep 17 00:00:00 2001 From: oleting Date: Sun, 27 Dec 2020 23:23:47 +0100 Subject: [PATCH] + add exception --- gui/gui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gui/gui.py b/gui/gui.py index 89ee97a..ff5e55e 100644 --- a/gui/gui.py +++ b/gui/gui.py @@ -1,5 +1,5 @@ from gui.utils import nassi, output, file_there -from interpreter.interpret_source import JavaSyntaxError, ScopeNotFoundException +from interpreter.interpret_source import JavaSyntaxError, ScopeNotFoundException, InterpreterException import PySimpleGUI as sg import os.path @@ -175,6 +175,9 @@ class Gui: ('||FileNotFoundError|| Failed to create Image with values = ' + str(values))) sg.popup_error( (str(FnFe) + 'File ' + str(file_path) + ' or ' + str(output_path) + ' or ' + str(font_filepath) + ' is not reachable.')) + except InterpreterException: + logging.error( + ('||InterpreterException|| Failed to create Image with values = ' + str(values))) except: logging.error( ('Failed to create Image with values = ' + str(values)))