mirror of
https://github.com/invariantlabs-ai/invariant-gateway.git
synced 2026-10-01 02:39:40 +02:00
Update the up() function to exit if the policies file path is not valid.
This commit is contained in:
1 parent
5ecab37feb
commit
d9d4ba0344
2 files changed
+4
-3
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user