webcheck commit: r414 - webcheck/schemes
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
webcheck commit: r414 - webcheck/schemes
- From: Commits of the webcheck project <webcheck-commits [at] lists.arthurdejong.org>
- To: webcheck-commits [at] lists.arthurdejong.org
- Reply-to: webcheck-users [at] lists.arthurdejong.org
- Subject: webcheck commit: r414 - webcheck/schemes
- Date: Thu, 23 Sep 2010 20:19:47 +0200 (CEST)
Author: arthur
Date: Thu Sep 23 20:19:45 2010
New Revision: 414
URL: http://arthurdejong.org/viewvc/webcheck?view=rev&revision=414
Log:
handle the case where hostname is empty
Modified:
   webcheck/schemes/http.py
Modified: webcheck/schemes/http.py
==============================================================================
--- webcheck/schemes/http.py    Sat Sep 18 19:01:08 2010        (r413)
+++ webcheck/schemes/http.py    Thu Sep 23 20:19:45 2010        (r414)
@@ -55,6 +55,10 @@
     proxyuserpass = None
     scheme = link.scheme
     # check validity of netloc (to work around bug in idna module)
+    if not netloc:
+        debugio.debug('schemes.http.fetch(): empty hostname')
+        link.add_linkproblem('empty hostname')
+        return None
     if netloc[0] == '.':
         debugio.debug('schemes.http.fetch(): fail on hostname starting with 
dot')
         link.add_linkproblem('hostname starts with a dot')
--
To unsubscribe send an email to
webcheck-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/webcheck-commits
- webcheck commit: r414 - webcheck/schemes,
Commits of the webcheck project