summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-10-28 07:36:22 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-10-30 07:41:57 (GMT)
commitd0a602e0b56359854ce148c0a7871f4928e160a2 (patch)
tree3f72fbfdbd3ab05be66982581e02ad12c3e8dcb6
parentb289e9cd91681d8da5ad8e5c83bfe41b59159348 (diff)
downloadwelco-0.63.zip
welco-0.63.tar.gz
welco-0.63.tar.bz2
mail: don't crash on undefined mail external id (#27616)v0.63
-rw-r--r--welco/sources/mail/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/welco/sources/mail/__init__.py b/welco/sources/mail/__init__.py
index 60d86e0..0304d62 100644
--- a/welco/sources/mail/__init__.py
+++ b/welco/sources/mail/__init__.py
@@ -37,7 +37,7 @@ class AppConfig(django.apps.AppConfig):
if not instance.formdata_id:
return
source = instance.source
- if not hasattr(source, 'external_id'):
+ if not getattr(source, 'external_id', None):
return
external_id = source.external_id
if not external_id.startswith('maarch-'):