Skip to content

Commit

Permalink
fix: throws error during uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
vineyrawat authored Jul 22, 2024
1 parent 4150a0a commit 4bfca4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frappe_whatsapp/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ def run_server_script_for_doc_event(doc, event):

if frappe.flags.in_migrate:
return

if frappe.flags.in_uninstall:
return

notification = get_notifications_map().get(
doc.doctype, {}
).get(EVENT_MAP[event], None)
Expand Down

0 comments on commit 4bfca4c

Please sign in to comment.