mirror of
http://aero2k.de/t/repos/urlbot-native.git
synced 2017-09-06 15:25:38 +02:00
fix crash on non-resolveable URLs
This commit is contained in:
@@ -48,6 +48,8 @@ def fetch_page(url):
|
|||||||
return (html, response.headers)
|
return (html, response.headers)
|
||||||
except IOError as e:
|
except IOError as e:
|
||||||
logger('warn', 'failed: ' + e.errno)
|
logger('warn', 'failed: ' + e.errno)
|
||||||
|
|
||||||
|
return (None, None)
|
||||||
|
|
||||||
def extract_title(url):
|
def extract_title(url):
|
||||||
if 'repo/urlbot.git' in url:
|
if 'repo/urlbot.git' in url:
|
||||||
|
|||||||
Reference in New Issue
Block a user