reteps / kbot

A kahoot bot that correctly answers questions.
81 stars 30 forks source link

undefined variable #2

Closed FarSeenNomic closed 7 years ago

FarSeenNomic commented 7 years ago

On line 115 of grab.py, the variables 'co', 'co2', and 'co3' don't seem to be defined locally or globally, causing an error.

FarSeenNomic commented 7 years ago

Just removing the arguments makes it work.

reteps commented 7 years ago

a new person! wow. It seems to work for me. Are you using kbot to run it?

FarSeenNomic commented 7 years ago

yes, if it fails the scrape, your code attempts to recall "scrape(url,email,passwd,co,co2,co3)" instead of "scrape(url,email,passwd)", also can see the error because 'scrape' only takes three arguments

reteps commented 7 years ago

I fixed it.