Python Requests: Error when inside Try, inside if
Go to solution
Solved by LewisSpring,
2 minutes ago, WereCatf said:Declare the mail - variable before the if - clauses. Even just a mail = None would suffice as a declaration and should fix the issue.
Hi there! .
I just realised the issue - It's trying to act on something that hasn't been set - since email was 0, it was not creating the "variable" to get the text from.
Thanks!
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now