diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2024-06-01 12:58:46 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2024-06-01 12:58:46 +0200 |
commit | 4ec0d658b5051bdcffc7a20530003d323967ff90 (patch) | |
tree | 780d9b4b331489e36690cd4d139786d1cc9a4b37 | |
parent | 869c81eb79345f1da7b9ae91ad9fc8dc009603d1 (diff) | |
download | wee-slack-build.tar.gz |
Skip over empty cookies.build
-rw-r--r-- | wee_slack.py | 2 |
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 |