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.
init.config_file()
1 parent 6ee94a9 commit c803002Copy full SHA for c803002
1 file changed
translate-messages/src/translate_messages/lib/init.py
@@ -62,8 +62,8 @@ def config_file(cli):
62
resp = requests.get(jsd_url, timeout=5)
63
resp.raise_for_status()
64
cli.file_config = resp.json()
65
- except (requests.RequestException, ValueError):
66
- cli.file_config = {}
+ except (requests.RequestException, ValueError) as err:
+ raise RuntimeError(f"Failed to fetch default config from {jsd_url}: {err}")
67
data.json.write(cli.file_config, cli.config_path)
68
print(f'Default config created at {cli.config_path}')
69
0 commit comments