Skip to content

Commit

Permalink
fix: ignore if controller doesn't have get_list attr (#23736) (#23742)
Browse files Browse the repository at this point in the history
(cherry picked from commit f62f447)

Co-authored-by: Smit Vora <smitvora203@gmail.com>
  • Loading branch information
mergify[bot] and vorasmit committed Dec 12, 2023
1 parent 8234d79 commit 0248c07
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frappe/model/db_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ def execute(
from frappe.model.base_document import get_controller

controller = get_controller(self.doctype)
if not hasattr(controller, "get_list"):
return []

self.parse_args()
kwargs = {
"as_list": as_list,
Expand Down

0 comments on commit 0248c07

Please sign in to comment.