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:
calvin 2006-06-14 06:44:52 +00:00
parent 6f0dbb5058
commit 46dfeb50ef

View file

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