Skip to content

Commit

Permalink
update horoscope.py parser
Browse files Browse the repository at this point in the history
  • Loading branch information
thewisenerd authored and tuzonghua committed Nov 21, 2017
1 parent a425e51 commit cc6da05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/horoscope.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def horoscope(text, db, bot, notice, nick):
horoscope_text = soup.find("div", class_="horoscope-content").find("p").text
'''
if not horoscope_text:
return "Could not get the horoscope for {}. Hororscope text error".format(sign)
return "Could not get the horoscope for {}.".format(text)
else:
horoscope_text = horoscope_text[0].text.strip()
'''
Expand Down

0 comments on commit cc6da05

Please sign in to comment.