fix: Avoid unnecessary "Not Found" error message
This commit is contained in:
parent
0c28820bcc
commit
fca0853ebd
1 changed files with 1 additions and 0 deletions
|
|
@ -52,6 +52,7 @@ def toggle_notifications(user: str, enable: bool = False):
|
|||
try:
|
||||
settings = frappe.get_doc("Notification Settings", user)
|
||||
except frappe.DoesNotExistError:
|
||||
frappe.clear_last_message()
|
||||
return
|
||||
|
||||
if settings.enabled != enable:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue