Catch extra errors (timeout).
This commit is contained in:
parent
f734fb2623
commit
05b5bc7783
2
morss
2
morss
@ -61,7 +61,7 @@ for item in items:
|
||||
else:
|
||||
log("no match")
|
||||
|
||||
except urllib2.HTTPError, error:
|
||||
except (urllib2.HTTPError, urllib2.URLError) as error:
|
||||
log(error)
|
||||
log("http error")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user