mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-28 19:50:29 +00:00
catch correct exception
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3372 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
6f0dbb5058
commit
46dfeb50ef
1 changed files with 2 additions and 2 deletions
|
|
@ -15,8 +15,8 @@
|
|||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
import time
|
||||
import Queue
|
||||
import task
|
||||
import linkcheck.cache.urlqueue
|
||||
|
||||
|
||||
def check_url (urlqueue, logger):
|
||||
|
|
@ -65,7 +65,7 @@ class Checker (task.CheckedTask):
|
|||
if url_data is not None:
|
||||
self.check_url_data(url_data)
|
||||
self.setName(self.origname)
|
||||
except Queue.Empty:
|
||||
except linkcheck.cache.urlqueue.Empty:
|
||||
time.sleep(0.1)
|
||||
|
||||
def check_url_data (self, url_data):
|
||||
|
|
|
|||
Loading…
Reference in a new issue