We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 502b87c commit 4c40e36Copy full SHA for 4c40e36
2 files changed
pyproject.toml
@@ -8,7 +8,7 @@ license = "MIT"
8
packages = [{include = "recorder"}]
9
10
[tool.poetry.scripts]
11
-recorder = "recorder.__main__:app"
+recorder = "recorder.__main__:main"
12
13
[tool.poetry.dependencies]
14
python = "^3.8"
recorder/__main__.py
@@ -147,8 +147,10 @@ def get_config(path: Path = DEFAULT_CONFIG_PATH) -> dict:
147
try:
148
return Config.from_yaml(path)
149
except AttributeError:
150
- typer_warn(f"No configuration found in {path}. Generate one.")
151
- return Config.from_yaml(path)
+ raise RuntimeError(
+ f"No configuration found in {path}. Generate one with the "
152
+ "`config` command."
153
+ )
154
155
156
@app.command(help="Record data from the configured devices")
0 commit comments