We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bcc080 commit 9037611Copy full SHA for 9037611
config.py
@@ -124,16 +124,14 @@ def load() -> "Config":
124
db_provider = Config._init_db_provider(db_type)
125
126
# Web URLs
127
- web_sources_raw = get("WEB_SOURCES")
128
try:
129
- web_sources = json.loads(web_sources_raw)
+ web_sources = json.loads(get("WEB_SOURCES"))
130
except json.JSONDecodeError as e:
131
raise ValueError(f"WEB_SOURCES must be a valid JSON list: {e}")
132
133
# Repo sources
134
- repo_sources_json = get("REPO_SOURCES")
135
136
- repo_sources = json.loads(repo_sources_json)
+ repo_sources = json.loads(get("REPO_SOURCES"))
137
138
raise ValueError(f"Invalid REPO_SOURCES JSON: {e}") from e
139
0 commit comments