Fix NotLoggedIn

This commit is contained in:
Mads Marquart
2020-01-25 15:07:04 +01:00
parent f8e110f180
commit 987993701f
2 changed files with 7 additions and 9 deletions

View File

@@ -308,7 +308,7 @@ class Session:
# Fall back to searching with a regex
res = FB_DTSG_REGEX.search(r.text)
if not res:
raise ValueError("Failed loading session, could not find fb_dtsg")
raise _exception.NotLoggedIn("Could not find fb_dtsg")
fb_dtsg = res.group(1)
revision = int(r.text.split('"client_revision":', 1)[1].split(",", 1)[0])