Private
Public Access
1
0

Make email processing more robust

This commit is contained in:
Sander Roosendaal
2017-01-06 19:43:46 +01:00
parent 93f6d8cb3c
commit af9662edac

View File

@@ -63,12 +63,16 @@ class Command(BaseCommand):
wid = [make_new_workout_from_email(rr,a.document,name)]
res += wid
link = 'http://rowsandall.com/rowers/workout/'+str(wid[0])+'/edit'
dd = send_confirm(u,name,link)
except:
# replace with code to process error
res += ['fail: '+name]
donotdelete = 1
try:
dd = send_confirm(u,name,link)
except:
pass
except Rower.DoesNotExist:
pass