Python Thread: can't start new thread
<p>I'm trying to run this code:</p>

<pre><code>def VideoHandler(id):
    try:
        cursor = conn.cursor()
        print "Doing {0}".format(id)
        data = urllib2.urlopen("http://myblogfms2.fxp.co.il/video" + str(id) + "/").read()
        title = re.search("&lt;span class=\"style5\"&gt;&lt;strong&gt;([\\s\\S]+?)&lt;/strong&gt;&lt;/span&gt;", data).group(1)
        picture = re.search("#4F9EFF;\"&gt;&lt;img src=\"(.+?)\" width=\"120\" height=\"90\"", data).group(1)
        link = re.search("flashvars=\"([\\s\\S]+?)\" width=\"612\"", data).group(1)
        id = id
        print "Done with {0}".format(id)
        cursor.execute("insert into videos (`title`, `picture`, `link`, `vid_id`) values('{0}', '{1}', '{2}', {3})".format(title, picture, link, id))
        print "Added {0} to the database".format(id)
    except:
        pass

x = 1
while True:
    if x != 945719:
        currentX = x
        thread.start_new_thread(VideoHandler, (currentX))
    else:
        break
    x += 1
</code></pre>

<p>and it says "can't start new thread"</p>
