Skip to content

Commit

Permalink
refactor(new_sc_flow_2): Fixed error thrown by semgrep
Browse files Browse the repository at this point in the history
  • Loading branch information
mihir-kandoi committed Dec 16, 2024
1 parent 080cd0c commit 7f9dbd7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,7 @@ def validate_service_items(self):

for service_item in self.service_items:
if frappe.get_value("Item", service_item.item_code, "is_stock_item"):
msg = f"Service Item {service_item.item_name} must be a non-stock item."
frappe.throw(_(msg))
frappe.throw(_("Service Item {0} must be a non-stock item.").format(service_item.item_code))

item = next(
item for item in self.items if item.purchase_order_item == service_item.purchase_order_item
Expand Down

0 comments on commit 7f9dbd7

Please sign in to comment.