Tweak a few error types.

This commit is contained in:
Julian Stirling 2025-08-21 16:11:30 +01:00
parent 46be2c770e
commit dade26cde1
3 changed files with 10 additions and 5 deletions

View file

@ -61,7 +61,7 @@ def _get_scans_dir(config: dict) -> Optional[str]:
try:
return config["things"]["/smart_scan/"]["kwargs"]["scans_folder"]
except KeyError as e:
msg = "Configuration error smart scan should have scans_folder kwarg set"
msg = "Configuration error: smart scan should have scans_folder kwarg set"
raise RuntimeError(msg) from e
return None