summaryrefslogtreecommitdiff
path: root/src/meetingtools/apps/room
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2012-02-10 13:00:38 +0100
committerLeif Johansson <leifj@sunet.se>2012-02-10 13:00:38 +0100
commit51ea44d3ff328ab9cb364adf71c39349e7a90070 (patch)
treea7fc8aa5e926ae028a3bb7ad31775b520cde4d10 /src/meetingtools/apps/room
parent8c6b3e68a1866642a8c6e1366237f47f8392c916 (diff)
log error when email fails
Diffstat (limited to 'src/meetingtools/apps/room')
-rw-r--r--src/meetingtools/apps/room/tasks.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/meetingtools/apps/room/tasks.py b/src/meetingtools/apps/room/tasks.py
index 6506cbf..bf8e837 100644
--- a/src/meetingtools/apps/room/tasks.py
+++ b/src/meetingtools/apps/room/tasks.py
@@ -209,6 +209,7 @@ def send_message(user,subject,message):
except ObjectDoesNotExist:
logging.info("User %s has no profile - email not sent" % user.username)
except Exception,exc:
+ logging.error("Error while sending email: \n%s" % exc)
send_message.retry(exc=exc)
@periodic_task(run_every=crontab(hour="*", minute="*", day_of_week="*"))