Apr-18-2018, 07:59 PM
(Apr-18-2018, 07:44 PM)georgelza Wrote: if gotEFTConnection == False:
UnboundLocalError: local variable 'gotEFTConnection' referenced before assignment
You're trying to use a variable, before you ever set a value to it. Probably, you're trying to use a global variable, which is why the error isn't very helpful (globals aren't recommended). If you want to use a global, you need to let the function know that you've set it somewhere else before you try to use it. Something like:
def eftdashboard(): global gotEFTConnection # then the rest of your function