From 61223092e0386016397ec738221aca7855d3e746 Mon Sep 17 00:00:00 2001 From: Saqib Ansari Date: Mon, 9 May 2022 18:42:54 +0530 Subject: [PATCH] fix: frappe.throw in case of list of errors (#16855) --- frappe/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/__init__.py b/frappe/__init__.py index 8bd7783283..46313e9ee9 100644 --- a/frappe/__init__.py +++ b/frappe/__init__.py @@ -435,7 +435,7 @@ def msgprint( if as_table and type(msg) in (list, tuple): out.as_table = 1 - if as_list and type(msg) in (list, tuple) and len(msg) > 1: + if as_list and type(msg) in (list, tuple): out.as_list = 1 if flags.print_messages and out.message: