+ update gitignore and catch Errors
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,7 +1,7 @@
|
|||||||
__pycache__/
|
__pycache__/
|
||||||
res/output/
|
res/output/
|
||||||
res/input/
|
res/input/
|
||||||
.vscode/
|
*.json
|
||||||
*.pyc
|
*.pyc
|
||||||
*.png
|
*.png
|
||||||
debug.py
|
debug.py
|
||||||
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user