Skip to content

Commit

Permalink
Merge pull request #1064 from blaggacao/fix/return-type-none
Browse files Browse the repository at this point in the history
fix: return type can be None
  • Loading branch information
nikkothari22 authored Sep 18, 2024
2 parents 625072b + ca3b8e9 commit e76878d
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 e76878d

Please sign in to comment.