I have a form that does some API calls before calling the editing loop. If an exception is thrown, I want the parentApp to immediately switch to the MAIN form, however, it simply ignores the form switch and continues on with the method.
def beforeEditing(self):
try:
some_API_call()
except something:
self.parentApp.switchForm('MAIN')
I have a form that does some API calls before calling the editing loop. If an exception is thrown, I want the parentApp to immediately switch to the MAIN form, however, it simply ignores the form switch and continues on with the method.