I have a function here:
def lookupStuff(): try: system.gui.me//////ssageBox('doing some stuff') except Syntax Error: system.gui.messageBox('syntax error found')
A button on my GUI causes this function to run. When I run the above code nothing actually happens on the GUI. If I remove the syntax errors though i get the proper message “doing some stuff”.
With the GUI open I do ctrl+ shift + F7 and under the console I can see that SyntaxError did actually occur.
How can I get my try except SyntaxError to function properly?