+ add exception

This commit is contained in:
oleting
2020-12-27 23:23:47 +01:00
parent c0b4fd2c98
commit 00a897a897

View File

@@ -1,5 +1,5 @@
from gui.utils import nassi, output, file_there 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 PySimpleGUI as sg
import os.path import os.path
@@ -175,6 +175,9 @@ class Gui:
('||FileNotFoundError|| Failed to create Image with values = ' + str(values))) ('||FileNotFoundError|| Failed to create Image with values = ' + str(values)))
sg.popup_error( sg.popup_error(
(str(FnFe) + 'File ' + str(file_path) + ' or ' + str(output_path) + ' or ' + str(font_filepath) + ' is not reachable.')) (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: except:
logging.error( logging.error(
('Failed to create Image with values = ' + str(values))) ('Failed to create Image with values = ' + str(values)))