Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,6 @@ import os
|
|
9 |
EMAIL = os.getenv("EMAIL")
|
10 |
PASSWD = os.getenv("PASSWD")
|
11 |
|
12 |
-
# 检查环境变量是否正确读取
|
13 |
if not EMAIL or not PASSWD:
|
14 |
raise Exception("EMAIL or PASSWD environment variables are not set")
|
15 |
|
@@ -18,6 +17,7 @@ sign = Login(EMAIL, PASSWD)
|
|
18 |
|
19 |
try:
|
20 |
cookies = sign.login(cookie_dir_path=cookie_path_dir, save_cookies=True)
|
|
|
21 |
except Exception as e:
|
22 |
print(f"Login failed: {e}")
|
23 |
raise
|
|
|
9 |
EMAIL = os.getenv("EMAIL")
|
10 |
PASSWD = os.getenv("PASSWD")
|
11 |
|
|
|
12 |
if not EMAIL or not PASSWD:
|
13 |
raise Exception("EMAIL or PASSWD environment variables are not set")
|
14 |
|
|
|
17 |
|
18 |
try:
|
19 |
cookies = sign.login(cookie_dir_path=cookie_path_dir, save_cookies=True)
|
20 |
+
print("Login successful!")
|
21 |
except Exception as e:
|
22 |
print(f"Login failed: {e}")
|
23 |
raise
|