aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2015-11-13 04:56:01 +0000
committerRyan Huber <rhuber@gmail.com>2015-11-13 04:56:01 +0000
commit7315b08e11f64a8b8425fb673a6bc76f69887664 (patch)
treeed85474fe276cbaa6937b436ce31d53239a92fe5 /wee_slack.py
parentf7a12869a1ab126ce6f3456eb7055a95f88bb7f0 (diff)
parent7dc2896e968512bd436ab3fcadf8d5425a2bba7c (diff)
downloadwee-slack-7315b08e11f64a8b8425fb673a6bc76f69887664.tar.gz
Merge branch 'master' into 114_better_buffer_mod
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py3
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()