Skip to content

Commit

Permalink
Bugfix unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
adityabindal committed Jul 24, 2017
1 parent f9967b1 commit c505dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -109,7 +109,7 @@ def getListings(url,ticker):
unit.saveToDB()
else:
# Send to AuntAgatha
desc = "{0} | {1} | {2} | <{3}>".format(str(unit.neighborhood).encode('utf-8'), str(unit.price).encode('utf-8'), str(unit.title).encode('utf-8'), str(unit.url).encode('utf-8'))
desc = "{0} | {1} | {2} | <{3}>".format(str(unit.neighborhood), unit.price, unit.title.encode('utf-8'), unit.url)
sc.api_call(
"chat.postMessage", channel=SLACK_CHANNEL, text=desc,
username='auntagatha', icon_emoji=':robot_face:'
Expand Down

0 comments on commit c505dab

Please sign in to comment.