aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2015-11-13 04:55:43 +0000
committerRyan Huber <rhuber@gmail.com>2015-11-13 04:55:43 +0000
commit7dc2896e968512bd436ab3fcadf8d5425a2bba7c (patch)
treef0771f1b27434b6fbed856f3d33b88745b578163 /wee_slack.py
parent0fc4e9a959ac7da1b79940b9a633390a7f5a9a7c (diff)
downloadwee-slack-7dc2896e968512bd436ab3fcadf8d5425a2bba7c.tar.gz
don't try this if None
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 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()