further pepping, spelling and other such things

This commit is contained in:
Luke Rogers 2014-02-13 15:02:44 +13:00
parent 6cc7554cd8
commit cd5ae1d32b
12 changed files with 52 additions and 56 deletions

View file

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