[Tutor] guess the error cause time!
Kirk Bailey
idiot1@netzero.net
Sun, 22 Sep 2002 00:38:06 -0400
OK, here is the error:
File "/www/www.tinylist.org/cgi-bin/TLcommander.py", line 155, in bullshit
if data not in
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_":
TypeError: string member test needs char left operand
A char left operand??? pardon, but WTF?
and here is the code:
def bullshit(data): # this detects evil data (we
HOPE)...
for i in data: # slice the data nicely
if data not in
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_":
print "ERROR: input invalid. Please click [BACK] on the
browser and modify input."
footer() #160
close the page out
sys.exit() # and
abort execution. I$
#
--
end
Respectfully,
Kirk D Bailey
+---------------------"Thou Art Free." -Eris-----------------------+
| http://www.howlermonkey.net mailto:highprimate@howlermonkey.net |
| KILL spam dead! http://www.scambusters.org/stopspam/#Pledge |
| http://www.tinylist.org +--------+ mailto:grumpy@tinylist.org |
+------------------Thinking| NORMAL |Thinking----------------------+
+--------+
-------------------------------------------
Introducing NetZero Long Distance
Unlimited Long Distance only $29.95/ month!
Sign Up Today! www.netzerolongdistance.com