What is error meaning

what is error meaning

App Versions

{
	"business_theme_v14": "0.0.1",
	"erpnext": "15.29.2",
	"frappe": "15.33.3",
	"insights": "1.1.3",
	"payments": "0.0.1",
	"propms": "1.7.0"
}

Route

Form/Broadcast/new-broadcast-uqwiwftxgn

Traceback

Traceback (most recent call last):
  File "apps/frappe/frappe/email/doctype/notification/notification.py", line 502, in evaluate_alert
    alert.send(doc)
  File "apps/frappe/frappe/email/doctype/notification/notification.py", line 179, in send
    self.load_standard_properties(context)
  File "apps/frappe/frappe/email/doctype/notification/notification.py", line 430, in load_standard_properties
    module = get_doc_module(self.module, self.doctype, self.name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/modules/utils.py", line 51, in get_doc_module
    return frappe.get_module(module_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/__init__.py", line 1476, in get_module
    return importlib.import_module(modulename)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'propms.property_management_solution.notification.notification_from_property_manager'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 114, in application
    response = frappe.api.handle(request)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/api/__init__.py", line 49, in handle
    data = endpoint(**arguments)
           ^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/api/v1.py", line 36, in handle_rpc_call
    return frappe.handler.handle()
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/handler.py", line 49, in handle
    data = execute_cmd(cmd)
           ^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/__init__.py", line 1768, in call
    return fn(*args, **newargs)
           ^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/desk/form/save.py", line 39, in savedocs
    doc.save()
  File "apps/frappe/frappe/model/document.py", line 337, in save
    return self._save(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 359, in _save
    return self.insert()
           ^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 308, in insert
    self.run_method("after_insert")
  File "apps/frappe/frappe/model/document.py", line 964, in run_method
    self.run_notifications(method)
  File "apps/frappe/frappe/model/document.py", line 1024, in run_notifications
    _evaluate_alert(alert)
  File "apps/frappe/frappe/model/document.py", line 1007, in _evaluate_alert
    evaluate_alert(self, alert.name, alert.event)
  File "apps/frappe/frappe/email/doctype/notification/notification.py", line 512, in evaluate_alert
    msg = f"<details><summary>{title}</summary>{message}</details>"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'message' where it is not associated with a value

Request Data

{
	"type": "POST",
	"args": {
		"doc": "{\"docstatus\":0,\"doctype\":\"Broadcast\",\"name\":\"new-broadcast-uqwiwftxgn\",\"__islocal\":1,\"__unsaved\":1,\"owner\":\"Administrator\",\"custom_messages\":\"<div class=\\\"ql-editor read-mode\\\"><p>fv</p></div>\",\"subject_line\":\"fd\"}",
		"action": "Save"
	},
	"btn": {
		"jQuery370025620648316915551": {
			"events": {
				"click": [
					{
						"type": "click",
						"origType": "click",
						"guid": 366,
						"namespace": ""
					}
				]
			}
		}
	},
	"freeze": true,
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/frappe.desk.form.save.savedocs",
	"request_id": null
}

Response Data

{
	"exception": "UnboundLocalError: cannot access local variable 'message' where it is not associated with a value",
	"exc_type": "UnboundLocalError"
}

IMO, Prompts is your custom app, and the issue is in the Prompts app. If you share the scenario you are trying to achieve and your code, then maybe someone can help you.