Clearer debug info

master
pictuga 2013-02-25 20:53:22 +01:00
parent eb63ce3f4f
commit d6179a734f
1 changed files with 3 additions and 2 deletions

5
morss
View File

@ -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)