<type 'exceptions.NameError'> | Python 2.7.5: /usr/bin/python Tue Apr 23 12:19:17 2024 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/afs/athena.mit.edu/user/j/o/joshuah/web_scripts/twittersaurus.py in |
91 |
92 # if len(words) < 200: |
=> 93 print "<font color='" + ('green' if valid else 'red') + "'>%s</font></br>" % client.username |
94 # else: |
95 # if valid: |
valid undefined, client = <__main__.http_client twitter.com:80>, client.username = 'the' |
<type 'exceptions.NameError'>: name 'valid' is not defined
args =
("name 'valid' is not defined",)
message =
"name 'valid' is not defined"