From 7dc2896e968512bd436ab3fcadf8d5425a2bba7c Mon Sep 17 00:00:00 2001 From: Ryan Huber Date: Fri, 13 Nov 2015 04:55:43 +0000 Subject: don't try this if None --- wee_slack.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wee_slack.py') diff --git a/wee_slack.py b/wee_slack.py index 000562b..53f39e3 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() -- cgit