aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 9d2e170..13eac0a 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -6750,7 +6750,11 @@ if __name__ == "__main__":
auto_connect = weechat.info_get("auto_connect", "") != "0"
if auto_connect:
- tokens = [token.strip() for token in config.slack_api_token.split(",")]
+ tokens = [
+ token.strip()
+ for token in config.slack_api_token.split(",")
+ if token
+ ]
w.prnt(
"",
"Connecting to {} slack team{}.".format(