aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wee_slack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 3c654cd..d5b54be 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1486,7 +1486,7 @@ class SlackRequest(object):
token, cookie = self.token.split(":", 1)
self.token = token
if cookie.startswith("d="):
- for name, value in [c.split("=") for c in cookie.split(";")]:
+ for name, value in [c.split("=") for c in cookie.split(";") if c]:
self.cookies[name] = value
else:
self.cookies["d"] = cookie