Skip to content

Commit

Permalink
slack: fix UnboundLocalError in Slack.notify
Browse files Browse the repository at this point in the history
  • Loading branch information
mikoim committed Jul 27, 2017
1 parent 032b650 commit 601e016
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions email2slack/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ def increment_of_mailaddr(text):
body = mail['body-plain']
elif mail['body-html']:
body = get_html_text(mail['body-html'])
else:
body = ''

url = [r[1] for r in self.__team if r[0].match(address_to)]
if url is None:
Expand Down

0 comments on commit 601e016

Please sign in to comment.