Clearer debug info
parent
eb63ce3f4f
commit
d6179a734f
5
morss
5
morss
|
@ -54,12 +54,13 @@ for item in items:
|
||||||
desc.text = text
|
desc.text = text
|
||||||
open(cached, 'w').write(text)
|
open(cached, 'w').write(text)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
log('error')
|
log('xml error')
|
||||||
else:
|
else:
|
||||||
log("no match")
|
log("no match")
|
||||||
|
|
||||||
except urllib2.HTTPError, error:
|
except urllib2.HTTPError, error:
|
||||||
log("error")
|
log(error)
|
||||||
|
log("http error")
|
||||||
|
|
||||||
if len(sys.argv) == 2:
|
if len(sys.argv) == 2:
|
||||||
print etree.tostring(rss)
|
print etree.tostring(rss)
|
||||||
|
|
Loading…
Reference in New Issue