prasanth.thangavel
commited on
Commit
·
901a06f
1
Parent(s):
b086139
Add default empty string value for loading FIREFOX_COOKIES from env
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ def env_to_cookies_from_env(output_file: str) -> None:
|
|
73 |
"""Convert environment variable from .env file to cookie file"""
|
74 |
try:
|
75 |
load_dotenv() # Load from .env file
|
76 |
-
env_content = os.getenv('FIREFOX_COOKIES')
|
77 |
#print(f"Printing env content: \n{env_content}")
|
78 |
if not env_content:
|
79 |
raise ValueError("FIREFOX_COOKIES not found in .env file")
|
@@ -85,7 +85,7 @@ def env_to_cookies_from_env(output_file: str) -> None:
|
|
85 |
def get_cookies():
|
86 |
"""Get cookies from environment variable"""
|
87 |
load_dotenv()
|
88 |
-
cookie_content = os.getenv('FIREFOX_COOKIES')
|
89 |
#print(cookie_content)
|
90 |
if not cookie_content:
|
91 |
raise ValueError("FIREFOX_COOKIES environment variable not set")
|
|
|
73 |
"""Convert environment variable from .env file to cookie file"""
|
74 |
try:
|
75 |
load_dotenv() # Load from .env file
|
76 |
+
env_content = os.getenv('FIREFOX_COOKIES', "")
|
77 |
#print(f"Printing env content: \n{env_content}")
|
78 |
if not env_content:
|
79 |
raise ValueError("FIREFOX_COOKIES not found in .env file")
|
|
|
85 |
def get_cookies():
|
86 |
"""Get cookies from environment variable"""
|
87 |
load_dotenv()
|
88 |
+
cookie_content = os.getenv('FIREFOX_COOKIES', "")
|
89 |
#print(cookie_content)
|
90 |
if not cookie_content:
|
91 |
raise ValueError("FIREFOX_COOKIES environment variable not set")
|