diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-06-29 22:09:48 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2023-06-29 22:15:55 +0200 |
commit | f6a2061dbf6926bff214c31bc782ad46c163d164 (patch) | |
tree | 55895aaaa3f6f4df05b84fd859b8efbed9270df6 /extract_token_from_browser.py | |
parent | 721ee2f35aa97fd92d9125f1453d2f91d1c7e929 (diff) | |
download | wee-slack-f6a2061dbf6926bff214c31bc782ad46c163d164.tar.gz |
Gracefully handle not finding Chrome local storage values
Diffstat (limited to 'extract_token_from_browser.py')
-rwxr-xr-x | extract_token_from_browser.py | 2 |
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) |