You're calling variables outside of their assignment.
Everything that is intended to be within your "find()" function's first "if:" statement should be inside of the "try:" statement as well, currently they reside outside. Hopefully, you understand what I mean by this, if not I'll explain further.
Also, consider using a while loop instead of calling your functions again.
Everything that is intended to be within your "find()" function's first "if:" statement should be inside of the "try:" statement as well, currently they reside outside. Hopefully, you understand what I mean by this, if not I'll explain further.
Also, consider using a while loop instead of calling your functions again.