From 5004374eccd0603a2c6f9a0311997d7ff00b4bea Mon Sep 17 00:00:00 2001 From: Anand Baburajan Date: Wed, 20 Sep 2023 16:44:51 +0530 Subject: [PATCH] chore: handle invalid connections conf for internal links (#22486) * chore: handle invalid connections conf for internal links * chore: remove unnecessary None --- frappe/desk/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/desk/notifications.py b/frappe/desk/notifications.py index f0470566ac..4c728bdee9 100644 --- a/frappe/desk/notifications.py +++ b/frappe/desk/notifications.py @@ -311,7 +311,7 @@ def get_internal_links(doc, link, link_doctype): elif isinstance(link, list): # get internal links in child documents table_fieldname, link_fieldname = link - for row in doc.get(table_fieldname): + for row in doc.get(table_fieldname) or []: value = row.get(link_fieldname) if value and value not in names: names.append(value)