Projet

Général

Profil

0001-mail-don-t-crash-on-undefined-mail-external-id-27616.patch

Frédéric Péters, 28 octobre 2018 08:37

Télécharger (909 octets)

Voir les différences:

Subject: [PATCH] mail: don't crash on undefined mail external id (#27616)

 welco/sources/mail/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
welco/sources/mail/__init__.py
37 37
        if not instance.formdata_id:
38 38
            return
39 39
        source = instance.source
40
        if not hasattr(source, 'external_id'):
40
        if not getattr(source, 'external_id', None):
41 41
            return
42 42
        external_id = source.external_id
43 43
        if not external_id.startswith('maarch-'):
44
-