fix crash on non-resolveable URLs

This commit is contained in:
urlbot
2014-08-09 22:39:19 +02:00
parent 2a39a810d6
commit 4994faaac8

View File

@@ -48,6 +48,8 @@ def fetch_page(url):
return (html, response.headers)
except IOError as e:
logger('warn', 'failed: ' + e.errno)
return (None, None)
def extract_title(url):
if 'repo/urlbot.git' in url: