Project

General

Profile

Bug #34152

KeyError: 'payment-new-invoice-email'

Added by Frédéric Péters 3 months ago.

Status:
Nouveau
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
19 Jun 2019
Due date:
% Done:

0%

Patch proposed:
No
Planning:
No

Description

Exception:
  type = '<type 'exceptions.KeyError'>', value = ''payment-new-invoice-email''

Stack trace (most recent call first):
  File "/usr/lib/python2.7/dist-packages/wcs/qommon/admin/emails.py", line 55, in get_subject
    53         emails_cfg = get_cfg('emails', {})
    54         cfg_key = 'email-%s' % email_key
>   55         default_subject = cls.emails_dict[email_key].get('default_subject')
    56         if default_subject:
    57             default_subject = _(default_subject)

  locals:
     cfg_key = 'email-payment-new-invoice-email'
     cls = <class 'wcs.qommon.admin.emails.EmailsDirectory'>
     email_key = 'payment-new-invoice-email'

Also available in: Atom PDF