Skip to content

Commit

Permalink
fix: frappe.throw in case of list of errors (#16855) (#16857)
Browse files Browse the repository at this point in the history
(cherry picked from commit 6122309)

Co-authored-by: Saqib Ansari <nextchamp.saqib@gmail.com>
  • Loading branch information
mergify[bot] and nextchamp-saqib committed May 9, 2022
1 parent ef0c31e commit 27a9d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ def _raise_exception():
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:
Expand Down

0 comments on commit 27a9d2d

Please sign in to comment.