aboutsummaryrefslogtreecommitdiffstats
path: root/extract_token_from_browser.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-06-29 22:09:48 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2023-06-29 22:15:55 +0200
commitf6a2061dbf6926bff214c31bc782ad46c163d164 (patch)
tree55895aaaa3f6f4df05b84fd859b8efbed9270df6 /extract_token_from_browser.py
parent721ee2f35aa97fd92d9125f1453d2f91d1c7e929 (diff)
downloadwee-slack-f6a2061dbf6926bff214c31bc782ad46c163d164.tar.gz
Gracefully handle not finding Chrome local storage values
Diffstat (limited to 'extract_token_from_browser.py')
-rwxr-xr-xextract_token_from_browser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/extract_token_from_browser.py b/extract_token_from_browser.py
index fb74535..d4c9c10 100755
--- a/extract_token_from_browser.py
+++ b/extract_token_from_browser.py
@@ -197,7 +197,7 @@ elif browser == "chrome":
db = DB(tmp_dir)
local_storage_value = db.get(leveldb_key)
- local_config = json.loads(local_storage_value[1:])
+ local_config = json.loads(local_storage_value[1:]) if local_storage_value else None
else:
assert_never(browser)