Commit 72543e6a authored by Michal Čihař's avatar Michal Čihař

Do not use mutable object as default value

parent 65660472
......@@ -46,11 +46,15 @@ import logging
logger = logging.getLogger('weblate')
def send_notification_email(language, email, notification, translation_obj, context={}, headers={}, from_email=None):
def send_notification_email(language, email, notification, translation_obj, context=None, headers=None, from_email=None):
'''
Renders and sends notification email.
'''
cur_language = translation.get_language()
if context is None:
context = {}
if headers is None:
headers = {}
try:
logger.info('sending notification %s on %s to %s', notification, translation_obj.__unicode__(), email)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment