Update the up() function to exit if the policies file path is not valid.

This commit is contained in:
Hemang authored and Hemang Sarkar committed 2025-02-28 11:45:53 +01:00
1 parent 5ecab37feb
commit d9d4ba0344
2 files changed
+4 -3

No files matched your search

-2
View File
@@ -10,7 +10,6 @@ class ProxyConfig:
"""Common configurations for the Proxy Server."""
def __init__(self):
print("hello in init of ProxyConfig")
self.policies = self._load_policies()
def _load_policies(self) -> str:
@@ -18,7 +17,6 @@ class ProxyConfig:
Loads and validates policies from the file specified in POLICIES_FILE_PATH.
Returns the policy file content as a string if valid; otherwise, raises an error.
"""
print("hello in load_policies")
policies_file = os.getenv("POLICIES_FILE_PATH", "")
if not policies_file: