All pastes #489267 Raw Edit

Untitled

public text v1 · immutable
·published 2007-05-15 13:17 UTC
rendered paste body
#!/usr/bin/python
import urllib2
try:
    s='404 error'
    asock = urllib2.urlopen("http://www.leilene.net/Leilene%20Dec%20000.JPG")
except urllib2.HTTPError, e:
    if e.code = 404 then open('/home/levon/testing', 'a').write(s)
    open('/home/levon/testing', 'a').write(s)