Skip to content

Commit

Permalink
[url] Fix error on Unicode pages
Browse files Browse the repository at this point in the history
  • Loading branch information
embolalia committed Jun 8, 2013
1 parent 736bcb0 commit e1211af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion url.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def check_callbacks(willie, trigger, url, run=True):

def find_title(url):
"""Return the title for the given URL."""
content = web.get(url)
content = web.get(url).decode('utf8')
# Some cleanup that I don't really grok, but was in the original, so
# we'll keep it (with the compiled regexes made global) for now.
content = title_tag_data.sub(r'<\1title>', content)
Expand Down

0 comments on commit e1211af

Please sign in to comment.