mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-29 10:34:42 +00:00
News timeout
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@57 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
e0e5632257
commit
70e80c3d18
1 changed files with 2 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import re,string,time,nntplib
|
||||
import re,string,time,nntplib,sys
|
||||
from HostCheckingUrlData import HostCheckingUrlData
|
||||
from UrlData import LinkCheckerException
|
||||
|
||||
|
|
@ -25,7 +25,7 @@ class NntpUrlData(HostCheckingUrlData):
|
|||
resp,count,first,last,name = nntp.group(self.host)
|
||||
timeout = 0
|
||||
except nntplib.error_perm:
|
||||
value = sys.exc_info()[1]
|
||||
type,value = sys.exc_info()[:2]
|
||||
print value
|
||||
if value[0]==505:
|
||||
# 505 too many connections per minute
|
||||
|
|
@ -35,7 +35,6 @@ class NntpUrlData(HostCheckingUrlData):
|
|||
timeout = 1
|
||||
else:
|
||||
raise
|
||||
resp,count,first,last,name = nntp.group(self.host)
|
||||
self.setInfo("Group %s has %s articles, range %s to %s" % \
|
||||
(name, count, first, last))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue