Skip to content

Commit c2a46e6

Browse files
committed
mail: fix None Type error in recipients
Signed-off-by: Pamfilos Fokianos <pamfilosf@gmail.com>
1 parent 09c68b5 commit c2a46e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cap/modules/mail/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def get_review_recipients(deposit, config):
8282
def get_cms_stat_recipients(record, config):
8383
data = current_app.config.get("CMS_STATS_COMMITEE_AND_PAGS")
8484
key = path_value_equals(config.get("path", ""), record)
85-
recipients = data.get(key, {}).get("contacts")
85+
recipients = data.get(key, {}).get("contacts", [])
8686
params = data.get(key, {}).get("params", {})
8787

8888
# mail for PDF forum

0 commit comments

Comments
 (0)