further pepping, spelling and other such things
This commit is contained in:
parent
6cc7554cd8
commit
cd5ae1d32b
12 changed files with 52 additions and 56 deletions
|
@ -14,9 +14,9 @@ def title(inp):
|
|||
except (http.HTTPError, http.URLError):
|
||||
return "Could not fetch page."
|
||||
|
||||
title = soup.find('title').contents[0]
|
||||
page_title = soup.find('title').contents[0]
|
||||
|
||||
if not title:
|
||||
if not page_title:
|
||||
return "Could not find title."
|
||||
|
||||
return u"{} [{}]".format(title, real_url)
|
||||
return u"{} [{}]".format(page_title, real_url)
|
||||
|
|
Reference in a new issue