Skip to content

Commit

Permalink
Merge pull request #1065 from The-Commit-Company/develop
Browse files Browse the repository at this point in the history
Merging develop into main
  • Loading branch information
nikkothari22 authored Sep 19, 2024
2 parents 6221f7b + e76878d commit 02f2c73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raven/raven_integrations/controllers/employee.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def on_update(doc, method):

old_doc = doc.get_doc_before_save()

if old_doc.department:
if old_doc and old_doc.department:
# Remove the employee as a member from the channel
old_channel = get_channel_for_department(old_doc.department)

Expand Down

0 comments on commit 02f2c73

Please sign in to comment.