Spaces:
Runtime error
Runtime error
Upload __init__.py
Browse files
financial_bot/__init__.py
CHANGED
@@ -31,7 +31,7 @@ def initialize(logging_config_path: str = "logging.yaml"):
|
|
31 |
)
|
32 |
logging.basicConfig(level=logging.INFO)
|
33 |
|
34 |
-
|
35 |
logger.info("Initializing env vars...")
|
36 |
if env_file_path is None:
|
37 |
env_file_path = find_dotenv(raise_error_if_not_found=True, usecwd=False)
|
@@ -40,7 +40,7 @@ def initialize(logging_config_path: str = "logging.yaml"):
|
|
40 |
found_env_file = load_dotenv(env_file_path, verbose=True, override=True)
|
41 |
if found_env_file is False:
|
42 |
raise RuntimeError(f"Could not find environment file at: {env_file_path}")
|
43 |
-
|
44 |
|
45 |
def initialize_logger(
|
46 |
config_path: str = "logging.yaml", logs_dir_name: str = "logs"
|
|
|
31 |
)
|
32 |
logging.basicConfig(level=logging.INFO)
|
33 |
|
34 |
+
"""
|
35 |
logger.info("Initializing env vars...")
|
36 |
if env_file_path is None:
|
37 |
env_file_path = find_dotenv(raise_error_if_not_found=True, usecwd=False)
|
|
|
40 |
found_env_file = load_dotenv(env_file_path, verbose=True, override=True)
|
41 |
if found_env_file is False:
|
42 |
raise RuntimeError(f"Could not find environment file at: {env_file_path}")
|
43 |
+
"""
|
44 |
|
45 |
def initialize_logger(
|
46 |
config_path: str = "logging.yaml", logs_dir_name: str = "logs"
|