diff options
-rw-r--r-- | wee_slack.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index fb42f58..38ae049 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -290,7 +290,8 @@ class SlackServer(object): for item in data['self']['prefs']['muted_channels'].split(','): if item == '': continue - self.channels.find(item).muted = True + if self.channels.find(item) is not None: + self.channels.find(item).muted = True for item in self.channels: item.get_history() |