Mercurial > kallithea
diff rhodecode/lib/celerylib/tasks.py @ 2154:747c1c7040a8 beta
fixed email prefix sent as None
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 22 Mar 2012 02:29:43 +0200 |
parents | 8ecfed1d8f8b |
children | dc2584ba5fbc eac0d6194783 |
line wrap: on
line diff
--- a/rhodecode/lib/celerylib/tasks.py Thu Mar 22 01:45:58 2012 +0200 +++ b/rhodecode/lib/celerylib/tasks.py Thu Mar 22 02:29:43 2012 +0200 @@ -328,7 +328,7 @@ DBS = get_session() email_config = config - subject = "%s %s" % (email_config.get('email_prefix'), subject) + subject = "%s %s" % (email_config.get('email_prefix', ''), subject) if not recipients: # if recipients are not defined we send to email_config + all admins admins = [u.email for u in User.query()