We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0e03e6 commit 62a8dedCopy full SHA for 62a8ded
src/arguments/notion.py
@@ -1,10 +1,9 @@
1
import os
2
-import json
+import sys
3
4
from .utility import Utility
5
from .error import SearchError
6
7
-from selenium import webdriver
8
from selenium.webdriver.common.by import By
9
from selenium.webdriver.support.ui import WebDriverWait
10
from selenium.webdriver.support import expected_conditions as EC
@@ -73,7 +72,8 @@ def set_tokenv2_cookie(self):
73
72
self.tokenv2_cookie = get_token_from_cookie(cookies, 'token_v2')
74
except Exception as e:
75
print(e)
76
-
77
- def print_token_v2(self):
78
- self.set_tokenv2_cookie()
79
- print(self.tokenv2_cookie)
+ self.tokenv2_cookie = None
+ finally:
+ os.environ['tokenv2_cookie'] = self.tokenv2_cookie
+ if self.tokenv2_cookie:
+ self.save_token_file()
0 commit comments