Capstone project error

Now iam working with my capstone project and iam getting error on that project


And my code image is here.

@mohamedabdulkadher.1 change
if data[‘success’]!=‘1’
to
if data[‘success’]!=1
Reply here if you get the same error

1 Like

Hi @mohamedabdulkadher.1,

send_email takes two parameters but you have only one parameter. It takes an email subject and email body.

mailer.send_email("Email Subject", "Email Body")

Also run your program for some more time, to collect more data.

1 Like

Thank you so much for giving the solution.Now, i will take some readings and see that if i get any doubts i will share that on boltforum

1 Like