I'm having some problems debugging a python script on my server. I'm getting a "500 Internal Server Error".
What the script does is take a link and then scrape a page and store some info from the page into a database. It seemed to be working fine until I changed one line of code from: shortenLink = "/forum-replies.cfm?t="+threadNum+"&p="+pageNum +"#r"+anchorNum to: shortenLink = "/forum-replies.cfm?t="+threadNum+"&p="+pageNum +"#r"+anchorNum if pageNum == '1': shortenLink = "/forum-replies.cfm?t="+threadNum+"#r"+anchorNum Here is the form page where the link is submitted: http://goodbyepolar.com/cgi-bin/avatar.py Here is the code from the script that processes the form: http://codedumper.com/avuno You can use this URL in the form page to generate the "500 Internal Server Error": http://forums.whirlpool.net.au/forum-replies-herring.cfm?r=16373017&tpr=1035665,1,2 As you can see from my codedump, I'm using import cgitb; cgitb.enable() to try to find the error, but with no success. I'm really at a loss as to why it's generating this error. Any help would be appreciated. Cheers. -- http://mail.python.org/mailman/listinfo/python-list