Skip to content
This repository has been archived by the owner on Jul 24, 2018. It is now read-only.

Commit

Permalink
Protect against null detail_value.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Jan 20, 2014
1 parent 64c757b commit 940a098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fmn/lib/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def _recipients(self, session, config, valid_paths, message):
""" Returns the list of recipients for a message. """
for user in User.all(session):
pref = Preference.load(session, user, self)
if pref:
if pref and pref.detail_value:
filter = pref.prefers(session, config, valid_paths, message)
if filter:
yield {
Expand Down

0 comments on commit 940a098

Please sign in to comment.