Skip to content

Commit

Permalink
Fix: don't throw when there is no accessToken
Browse files Browse the repository at this point in the history
  • Loading branch information
eight04 committed Oct 2, 2024
1 parent 9c6bd66 commit a89567e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion comiccrawler/mods/sankaku_beta.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ def session_key(url):

def load_config():
s = session_manager.get("https://www.sankakucomplex.com/posts/keyset")
access_token = get_cookie(s.cookies, "accessToken", domain="www.sankakucomplex.com")
try:
access_token = get_cookie(s.cookies, "accessToken", domain="www.sankakucomplex.com")
except ValueError:
access_token = ""
s.headers.update({
"Accept": "application/vnd.sankaku.api+json;v=2",
"Client-Type": "non-premium",
Expand Down

0 comments on commit a89567e

Please sign in to comment.