Skip to content

Commit

Permalink
Removed exception checking because don't think exceptions will be thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
rroskam committed Oct 24, 2016
1 parent efaf4d2 commit 73ec516
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions herald/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,15 +280,12 @@ def _send(recipients, text_content=None, html_content=None, sent_from=None, subj
num_of_messages = 0

for recipient in recipients:
try:
client.messages.create(
body=text_content,
to=recipient,
from_=sent_from
)
num_of_messages += 1
except:
pass
client.messages.create(
body=text_content,
to=recipient,
from_=sent_from
)
num_of_messages += 1

return num_of_messages

Expand Down

0 comments on commit 73ec516

Please sign in to comment.