removed try except around email in tasks.py
This commit is contained in:
@@ -382,13 +382,10 @@ def handle_otwsetpower(f1, boattype, weightvalue,
|
|||||||
res, btvalues, res2 = utils.isbreakthrough(
|
res, btvalues, res2 = utils.isbreakthrough(
|
||||||
delta, cpvalues, ps[0], ps[1], ps[2], ps[3], ratio)
|
delta, cpvalues, ps[0], ps[1], ps[2], ps[3], ratio)
|
||||||
if res:
|
if res:
|
||||||
try:
|
|
||||||
handle_sendemail_breakthrough(
|
handle_sendemail_breakthrough(
|
||||||
workoutid, email,
|
workoutid, email,
|
||||||
first_name,
|
first_name,
|
||||||
last_name, btvalues=btvalues.to_json())
|
last_name, btvalues=btvalues.to_json())
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
# send email
|
# send email
|
||||||
fullemail = first_name + " " + last_name + " " + "<" + email + ">"
|
fullemail = first_name + " " + last_name + " " + "<" + email + ">"
|
||||||
@@ -404,12 +401,9 @@ def handle_otwsetpower(f1, boattype, weightvalue,
|
|||||||
message += "Please report any bugs/inconsistencies/unexpected results at rowsandall.slack.com or by reply to this email.\n\n"
|
message += "Please report any bugs/inconsistencies/unexpected results at rowsandall.slack.com or by reply to this email.\n\n"
|
||||||
message += "Best Regards, The Rowsandall Physics Department."
|
message += "Best Regards, The Rowsandall Physics Department."
|
||||||
|
|
||||||
try:
|
|
||||||
send_mail(subject, message,
|
send_mail(subject, message,
|
||||||
'Rowsandall Physics Department <info@rowsandall.com>',
|
'Rowsandall Physics Department <info@rowsandall.com>',
|
||||||
[fullemail])
|
[fullemail])
|
||||||
except:
|
|
||||||
return 0
|
|
||||||
|
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user