+ update gitignore and catch Errors

This commit is contained in:
oleting
2020-12-26 15:44:03 +01:00
parent 6f9f72e919
commit 683a0c7a70
2 changed files with 7 additions and 3 deletions

2
.gitignore vendored
View File

@@ -1,7 +1,7 @@
__pycache__/ __pycache__/
res/output/ res/output/
res/input/ res/input/
.vscode/ *.json
*.pyc *.pyc
*.png *.png
debug.py debug.py

View File

@@ -1,4 +1,5 @@
from gui.utils import nassi, output from gui.utils import nassi, output
from interpreter.interpret_source import JavaSyntaxError
import PySimpleGUI as sg import PySimpleGUI as sg
import os.path import os.path
import random import random
@@ -132,10 +133,13 @@ class gui:
sg.popup_notify('Succsessful created!', sg.popup_notify('Succsessful created!',
title='Created') title='Created')
except JavaSyntaxError:
logging.error(('||SyntaxError in Java File||Failed to create Image with values = ' + str(values)))
sg.popup_error(('Failed to create an image: SyntaxError in your Javacode'))
except: except:
logging.error( logging.error(
('Failed to create Image with values = ' + str(values))) ('Failed to create Image with values = ' + str(values)))
pass sg.popup_error(('Failed to create an image: '))
elif values['-JAVA FOLDER-']: elif values['-JAVA FOLDER-']:
logging.error('No Output') logging.error('No Output')